Change the type of the VLAN interface from IFT_PROPVIRTUAL,

which was a temporary hack, to IFT_L2VLAN, which is the type
assigned by IANA.
This commit is contained in:
Yaroslav Tykhiy 2001-04-04 15:10:58 +00:00
parent 09f59dfc92
commit b7bffa713d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75179
2 changed files with 3 additions and 3 deletions

View File

@ -1357,7 +1357,7 @@ if_setlladdr(struct ifnet *ifp, const u_char *lladdr, int len)
case IFT_FDDI:
case IFT_XETHER:
case IFT_ISO88025:
case IFT_PROPVIRTUAL: /* XXX waiting for IFT_8021_VLAN */
case IFT_L2VLAN:
bcopy(lladdr, ((struct arpcom *)ifp->if_softc)->ac_enaddr, len);
bcopy(lladdr, LLADDR(sdl), len);
break;

View File

@ -64,8 +64,8 @@ struct ether_vlan_header {
#define EVL_PRIOFTAG(tag) (((tag) >> 13) & 7)
#define EVL_ENCAPLEN 4 /* length in octets of encapsulation */
/* When these sorts of interfaces get their own identifier... */
#define IFT_8021_VLAN IFT_PROPVIRTUAL
/* These sorts of interfaces got their own identifier from IANA */
#define IFT_8021_VLAN IFT_L2VLAN
/* sysctl(3) tags, for compatibility purposes */
#define VLANCTL_PROTO 1