| 253 | } |
| 254 | |
| 255 | int |
| 256 | ff_mbuf_copydata(void *m, void *data, int off, int len) |
| 257 | { |
| 258 | int ret; |
| 259 | struct mbuf *mb = (struct mbuf *)m; |
| 260 | |
| 261 | if (off + len > mb->m_pkthdr.len) { |
| 262 | return -1; |
| 263 | } |
| 264 | |
| 265 | m_copydata(mb, off, len, data); |
| 266 | |
| 267 | return 0; |
| 268 | } |
| 269 | |
| 270 | void |
| 271 | ff_mbuf_tx_offload(void *m, struct ff_tx_offload *offload) |
no test coverage detected