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

Function socket_send

freebsd/netinet/ip_mroute.c:1192–1206  ·  view source on GitHub ↗

* Send a message to the routing daemon on the multicast routing socket. */

Source from the content-addressed store, hash-verified

1190 * Send a message to the routing daemon on the multicast routing socket.
1191 */
1192static int
1193socket_send(struct socket *s, struct mbuf *mm, struct sockaddr_in *src)
1194{
1195 if (s) {
1196 SOCKBUF_LOCK(&s->so_rcv);
1197 if (sbappendaddr_locked(&s->so_rcv, (struct sockaddr *)src, mm,
1198 NULL) != 0) {
1199 sorwakeup_locked(s);
1200 return 0;
1201 }
1202 SOCKBUF_UNLOCK(&s->so_rcv);
1203 }
1204 m_freem(mm);
1205 return -1;
1206}
1207
1208/*
1209 * IP multicast forwarding function. This function assumes that the packet

Callers 4

X_ip_mforwardFunction · 0.70
ip_mdqFunction · 0.70
bw_upcalls_sendFunction · 0.70
pim_register_send_upcallFunction · 0.70

Calls 2

sbappendaddr_lockedFunction · 0.85
m_freemFunction · 0.50

Tested by

no test coverage detected