Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet6/in6.c
Show First 20 Lines • Show All 1,956 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
int | int | ||||
in6_if2idlen(struct ifnet *ifp) | in6_if2idlen(struct ifnet *ifp) | ||||
{ | { | ||||
switch (ifp->if_type) { | switch (ifp->if_type) { | ||||
case IFT_ETHER: /* RFC2464 */ | case IFT_ETHER: /* RFC2464 */ | ||||
case IFT_PROPVIRTUAL: /* XXX: no RFC. treat it as ether */ | case IFT_PROPVIRTUAL: /* XXX: no RFC. treat it as ether */ | ||||
case IFT_L2VLAN: /* ditto */ | case IFT_L2VLAN: /* ditto */ | ||||
case IFT_IEEE80211: /* ditto */ | |||||
case IFT_BRIDGE: /* bridge(4) only does Ethernet-like links */ | case IFT_BRIDGE: /* bridge(4) only does Ethernet-like links */ | ||||
case IFT_INFINIBAND: | case IFT_INFINIBAND: | ||||
return (64); | return (64); | ||||
case IFT_FDDI: /* RFC2467 */ | case IFT_FDDI: /* RFC2467 */ | ||||
return (64); | return (64); | ||||
case IFT_ISO88025: /* RFC2470 (IPv6 over Token Ring) */ | case IFT_ISO88025: /* RFC2470 (IPv6 over Token Ring) */ | ||||
return (64); | return (64); | ||||
case IFT_PPP: /* RFC2472 */ | case IFT_PPP: /* RFC2472 */ | ||||
▲ Show 20 Lines • Show All 531 Lines • Show Last 20 Lines |