Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet6/nd6.c
Show First 20 Lines • Show All 2,253 Lines • ▼ Show 20 Lines | if ((ND_IFINFO(ifp)->flags & ND6_IFF_IFDISABLED)) { | ||||
return (ENETDOWN); /* better error? */ | return (ENETDOWN); /* better error? */ | ||||
} | } | ||||
if (m != NULL && m->m_flags & M_MCAST) { | if (m != NULL && m->m_flags & M_MCAST) { | ||||
switch (ifp->if_type) { | switch (ifp->if_type) { | ||||
case IFT_ETHER: | case IFT_ETHER: | ||||
case IFT_FDDI: | case IFT_FDDI: | ||||
case IFT_L2VLAN: | case IFT_L2VLAN: | ||||
case IFT_IEEE80211: | |||||
case IFT_BRIDGE: | case IFT_BRIDGE: | ||||
case IFT_ISO88025: | case IFT_ISO88025: | ||||
ETHER_MAP_IPV6_MULTICAST(&dst6->sin6_addr, | ETHER_MAP_IPV6_MULTICAST(&dst6->sin6_addr, | ||||
desten); | desten); | ||||
return (0); | return (0); | ||||
default: | default: | ||||
m_freem(m); | m_freem(m); | ||||
return (EAFNOSUPPORT); | return (EAFNOSUPPORT); | ||||
▲ Show 20 Lines • Show All 251 Lines • ▼ Show 20 Lines | nd6_need_cache(struct ifnet *ifp) | ||||
* - unidirectional tunnels needs no ND | * - unidirectional tunnels needs no ND | ||||
*/ | */ | ||||
switch (ifp->if_type) { | switch (ifp->if_type) { | ||||
case IFT_ARCNET: | case IFT_ARCNET: | ||||
case IFT_ETHER: | case IFT_ETHER: | ||||
case IFT_FDDI: | case IFT_FDDI: | ||||
case IFT_IEEE1394: | case IFT_IEEE1394: | ||||
case IFT_L2VLAN: | case IFT_L2VLAN: | ||||
case IFT_IEEE80211: | |||||
case IFT_INFINIBAND: | case IFT_INFINIBAND: | ||||
case IFT_BRIDGE: | case IFT_BRIDGE: | ||||
case IFT_PROPVIRTUAL: | case IFT_PROPVIRTUAL: | ||||
return (1); | return (1); | ||||
default: | default: | ||||
return (0); | return (0); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 211 Lines • Show Last 20 Lines |