Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_output.c
Show First 20 Lines • Show All 2,966 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Routine called from ip6_output() to loop back a copy of an IP6 multicast | * Routine called from ip6_output() to loop back a copy of an IP6 multicast | ||||
* packet to the input queue of a specified interface. Note that this | * packet to the input queue of a specified interface. Note that this | ||||
* calls the output routine of the loopback "driver", but with an interface | * calls the output routine of the loopback "driver", but with an interface | ||||
* pointer that might NOT be &loif -- easier than replicating that code here. | * pointer that might NOT be &loif -- easier than replicating that code here. | ||||
*/ | */ | ||||
void | void | ||||
ip6_mloopback(struct ifnet *ifp, const struct mbuf *m) | ip6_mloopback(struct ifnet *ifp, struct mbuf *m) | ||||
{ | { | ||||
struct mbuf *copym; | struct mbuf *copym; | ||||
struct ip6_hdr *ip6; | struct ip6_hdr *ip6; | ||||
copym = m_copy(m, 0, M_COPYALL); | copym = m_copy(m, 0, M_COPYALL); | ||||
if (copym == NULL) | if (copym == NULL) | ||||
return; | return; | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |