* 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. */
| 1237 | * mbufs. |
| 1238 | */ |
| 1239 | int |
| 1240 | sbappendaddr(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 | |
| 1251 | void |
| 1252 | sbappendcontrol_locked(struct sockbuf *sb, struct mbuf *m0, |
no test coverage detected