| 1328 | } |
| 1329 | |
| 1330 | u_int |
| 1331 | m_length(struct mbuf *m0, struct mbuf **last) |
| 1332 | { |
| 1333 | struct mbuf *m; |
| 1334 | u_int len; |
| 1335 | |
| 1336 | len = 0; |
| 1337 | for (m = m0; m != NULL; m = m->m_next) { |
| 1338 | len += m->m_len; |
| 1339 | if (m->m_next == NULL) |
| 1340 | break; |
| 1341 | } |
| 1342 | if (last != NULL) |
| 1343 | *last = m; |
| 1344 | return (len); |
| 1345 | } |
| 1346 | |
| 1347 | /* |
| 1348 | * Defragment a mbuf chain, returning the shortest possible |
no outgoing calls
no test coverage detected