| 1249 | } |
| 1250 | |
| 1251 | void |
| 1252 | sbappendcontrol_locked(struct sockbuf *sb, struct mbuf *m0, |
| 1253 | struct mbuf *control, int flags) |
| 1254 | { |
| 1255 | struct mbuf *m, *mlast; |
| 1256 | |
| 1257 | sbm_clrprotoflags(m0, flags); |
| 1258 | m_last(control)->m_next = m0; |
| 1259 | |
| 1260 | SBLASTRECORDCHK(sb); |
| 1261 | |
| 1262 | for (m = control; m->m_next; m = m->m_next) |
| 1263 | sballoc(sb, m); |
| 1264 | sballoc(sb, m); |
| 1265 | mlast = m; |
| 1266 | SBLINKRECORD(sb, control); |
| 1267 | |
| 1268 | sb->sb_mbtail = mlast; |
| 1269 | SBLASTMBUFCHK(sb); |
| 1270 | |
| 1271 | SBLASTRECORDCHK(sb); |
| 1272 | } |
| 1273 | |
| 1274 | void |
| 1275 | sbappendcontrol(struct sockbuf *sb, struct mbuf *m0, struct mbuf *control, |
no test coverage detected