diff options
author | sam <sam@FreeBSD.org> | 2008-10-02 20:03:41 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-10-02 20:03:41 +0000 |
commit | c683906dce46a16ef0516201ae20597f1ca39ed3 (patch) | |
tree | fc3013573b827d8b536366c23754a405926b2049 /sbin | |
parent | 15989016daa9bb843d3057d08c26694f91f69caa (diff) | |
download | FreeBSD-src-c683906dce46a16ef0516201ae20597f1ca39ed3.zip FreeBSD-src-c683906dce46a16ef0516201ae20597f1ca39ed3.tar.gz |
add duplicate cmd entries for vlan and vlandev that are marked !clone
so they can be used when not doing a create operation
Reviewed by: ed
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/ifvlan.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifvlan.c b/sbin/ifconfig/ifvlan.c index d280062..6742789 100644 --- a/sbin/ifconfig/ifvlan.c +++ b/sbin/ifconfig/ifvlan.c @@ -174,6 +174,9 @@ DECL_CMD_FUNC(unsetvlandev, val, d) static struct cmd vlan_cmds[] = { DEF_CLONE_CMD_ARG("vlan", setvlantag), DEF_CLONE_CMD_ARG("vlandev", setvlandev), + /* NB: non-clone cmds */ + DEF_CMD_ARG("vlan", setvlantag), + DEF_CMD_ARG("vlandev", setvlandev), /* XXX For compatibility. Should become DEF_CMD() some day. */ DEF_CMD_OPTARG("-vlandev", unsetvlandev), DEF_CMD("vlanmtu", IFCAP_VLAN_MTU, setifcap), |