MCPcopy Create free account
hub / github.com/F-Stack/f-stack / socket_send

Function socket_send

freebsd/netinet6/ip6_mroute.c:1031–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029}
1030
1031static int
1032socket_send(struct socket *s, struct mbuf *mm, struct sockaddr_in6 *src)
1033{
1034
1035 if (s) {
1036 if (sbappendaddr(&s->so_rcv,
1037 (struct sockaddr *)src,
1038 mm, (struct mbuf *)0) != 0) {
1039 sorwakeup(s);
1040 return (0);
1041 }
1042 }
1043 m_freem(mm);
1044 return (-1);
1045}
1046
1047/*
1048 * IPv6 multicast forwarding function. This function assumes that the packet

Callers 3

X_ip6_mforwardFunction · 0.70
ip6_mdqFunction · 0.70
register_sendFunction · 0.70

Calls 2

sbappendaddrFunction · 0.85
m_freemFunction · 0.50

Tested by

no test coverage detected