Deleted Added
full compact
59c59
< "$FreeBSD: head/sbin/ifconfig/ifvlan.c 95005 2002-04-18 17:14:09Z imp $";
---
> "$FreeBSD: head/sbin/ifconfig/ifvlan.c 138593 2004-12-08 19:18:07Z sam $";
64,65c64,65
< void
< vlan_status(int s, struct rt_addrinfo *info __unused)
---
> static void
> vlan_status(int s, const struct rt_addrinfo *info __unused)
82c82
< void
---
> static void
105c105
< void
---
> static void
128c128
< void
---
> static void
146a147,173
>
> static struct cmd vlan_cmds[] = {
> DEF_CMD_ARG("vlan", setvlantag),
> DEF_CMD_ARG("vlandev", setvlandev),
> DEF_CMD_ARG("-vlandev", unsetvlandev),
> DEF_CMD("vlanmtu", IFCAP_VLAN_MTU, setifcap),
> DEF_CMD("-vlanmtu", -IFCAP_VLAN_MTU, setifcap),
> DEF_CMD("vlanhwtag", IFCAP_VLAN_HWTAGGING, setifcap),
> DEF_CMD("-vlanhwtag", -IFCAP_VLAN_HWTAGGING, setifcap),
> };
> static struct afswtch af_vlan = {
> .af_name = "af_vlan",
> .af_af = AF_UNSPEC,
> .af_status = vlan_status,
> };
>
> static __constructor void
> vlan_ctor(void)
> {
> #define N(a) (sizeof(a) / sizeof(a[0]))
> int i;
>
> for (i = 0; i < N(vlan_cmds); i++)
> cmd_register(&vlan_cmds[i]);
> af_register(&af_vlan);
> #undef N
> }