]> git.saurik.com Git - apple/network_cmds.git/blobdiff - ifconfig.tproj/ifvlan.c
network_cmds-543.50.4.tar.gz
[apple/network_cmds.git] / ifconfig.tproj / ifvlan.c
index eec3ef15c2c7566a3411e8c103761f62b858852f..9ec0a0ae84f88267df03c0ea3996a50d308da733 100644 (file)
 
 #include "ifconfig.h"
 
-#ifndef lint
-static const char rcsid[] =
-  "$FreeBSD: src/sbin/ifconfig/ifvlan.c,v 1.12.2.1.2.1 2008/11/25 02:59:29 kensmith Exp $";
-#endif
+#include <sys/cdefs.h>
 
 #define        NOTAG   ((u_short) -1)
 
@@ -181,12 +178,14 @@ static struct cmd vlan_cmds[] = {
        DEF_CLONE_CMD_ARG("vlandev",                    setvlandev),
        /* XXX For compatibility.  Should become DEF_CMD() some day. */
        DEF_CMD_OPTARG("-vlandev",                      unsetvlandev),
-#ifdef notdef
+#ifdef IFCAP_VLAN_MTU
        DEF_CMD("vlanmtu",      IFCAP_VLAN_MTU,         setifcap),
        DEF_CMD("-vlanmtu",     -IFCAP_VLAN_MTU,        setifcap),
+#endif /* IFCAP_VLAN_MTU */
+#ifdef IFCAP_VLAN_HWTAGGING
        DEF_CMD("vlanhwtag",    IFCAP_VLAN_HWTAGGING,   setifcap),
        DEF_CMD("-vlanhwtag",   -IFCAP_VLAN_HWTAGGING,  setifcap),
-#endif
+#endif /* IFCAP_VLAN_HWTAGGING */
 };
 static struct afswtch af_vlan = {
        .af_name        = "af_vlan",