Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_infiniband.c
Show First 20 Lines • Show All 247 Lines • ▼ Show 20 Lines | if ((m->m_flags & (M_BCAST | M_MCAST)) == 0) { | ||||
ih->ib_protocol = htons(ETHERTYPE_IP); | ih->ib_protocol = htons(ETHERTYPE_IP); | ||||
ih->ib_reserved = 0; | ih->ib_reserved = 0; | ||||
} | } | ||||
break; | break; | ||||
#endif | #endif | ||||
#ifdef INET6 | #ifdef INET6 | ||||
case AF_INET6: | case AF_INET6: | ||||
if ((m->m_flags & M_MCAST) == 0) { | if ((m->m_flags & M_MCAST) == 0) { | ||||
error = nd6_resolve(ifp, ro_get_gw_type(ro), m, dst, | error = nd6_resolve(ifp, 0, m, dst, phdr, &lleflags, | ||||
phdr, &lleflags, plle); | plle); | ||||
} else { | } else { | ||||
infiniband_ipv6_multicast_map( | infiniband_ipv6_multicast_map( | ||||
&((const struct sockaddr_in6 *)dst)->sin6_addr, | &((const struct sockaddr_in6 *)dst)->sin6_addr, | ||||
ifp->if_broadcastaddr, ih->ib_hwaddr); | ifp->if_broadcastaddr, ih->ib_hwaddr); | ||||
ih->ib_protocol = htons(ETHERTYPE_IPV6); | ih->ib_protocol = htons(ETHERTYPE_IPV6); | ||||
ih->ib_reserved = 0; | ih->ib_reserved = 0; | ||||
} | } | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 396 Lines • Show Last 20 Lines |