From 6fcf562d67751b1dd150b1eb330e41f51f7ff8a9 Mon Sep 17 00:00:00 2001 From: dlg Date: Tue, 6 Jun 2017 04:52:40 +0000 Subject: [PATCH] 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. --- sbin/ifconfig/ifconfig.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 }, -- 2.20.1