From: dlg Date: Tue, 6 Jun 2017 04:52:40 +0000 (+0000) Subject: make vnetid and parent commands available in SMALL ifconfigs. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6fcf562d67751b1dd150b1eb330e41f51f7ff8a9;p=openbsd make vnetid and parent commands available in SMALL ifconfigs. the code behind the commands has been built on SMALL forever, this just moves it available in the cmd table. the binary doesnt change size. --- diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 129bfbde1ff..5944d5b46c0 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.342 2017/06/05 05:10:23 dlg Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.343 2017/06/06 04:52:40 dlg Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -367,6 +367,10 @@ const struct cmd { { "scan", NEXTARG0, 0, setifscan }, { "broadcast", NEXTARG, 0, setifbroadaddr }, { "prefixlen", NEXTARG, 0, setifprefixlen}, + { "vnetid", NEXTARG, 0, setvnetid }, + { "-vnetid", 0, 0, delvnetid }, + { "parent", NEXTARG, 0, setifparent }, + { "-parent", 1, 0, delifparent }, { "vlan", NEXTARG, 0, setvlantag }, { "vlandev", NEXTARG, 0, setvlandev }, { "-vlandev", 1, 0, unsetvlandev }, @@ -428,10 +432,6 @@ const struct cmd { { "deletetunnel", 0, 0, deletetunnel } , { "tunneldomain", NEXTARG, 0, settunnelinst } , { "tunnelttl", NEXTARG, 0, settunnelttl } , - { "vnetid", NEXTARG, 0, setvnetid }, - { "-vnetid", 0, 0, delvnetid }, - { "parent", NEXTARG, 0, setifparent }, - { "-parent", 1, 0, delifparent }, { "pppoedev", NEXTARG, 0, setpppoe_dev }, { "pppoesvc", NEXTARG, 0, setpppoe_svc }, { "-pppoesvc", 1, 0, setpppoe_svc },