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

Function sbappendaddr

freebsd/kern/uipc_sockbuf.c:1239–1249  ·  view source on GitHub ↗

* Append address and data, and optionally, control (ancillary) data to the * receive queue of a socket. If present, m0 must include a packet header * with total length. Returns 0 if no space in sockbuf or insufficient * mbufs. */

Source from the content-addressed store, hash-verified

1237 * mbufs.
1238 */
1239int
1240sbappendaddr(struct sockbuf *sb, const struct sockaddr *asa,
1241 struct mbuf *m0, struct mbuf *control)
1242{
1243 int retval;
1244
1245 SOCKBUF_LOCK(sb);
1246 retval = sbappendaddr_locked(sb, asa, m0, control);
1247 SOCKBUF_UNLOCK(sb);
1248 return (retval);
1249}
1250
1251void
1252sbappendcontrol_locked(struct sockbuf *sb, struct mbuf *m0,

Callers 6

ip6_notify_pmtuFunction · 0.85
socket_sendFunction · 0.85
rip6_inputFunction · 0.85
raw_input_extFunction · 0.85
key_sendup0Function · 0.85

Calls 1

sbappendaddr_lockedFunction · 0.85

Tested by

no test coverage detected