* Simple data copy to the current kernel buffer. */
| 101 | * Simple data copy to the current kernel buffer. |
| 102 | */ |
| 103 | void |
| 104 | bpf_buffer_append_bytes(struct bpf_d *d, caddr_t buf, u_int offset, |
| 105 | void *src, u_int len) |
| 106 | { |
| 107 | u_char *src_bytes; |
| 108 | |
| 109 | src_bytes = (u_char *)src; |
| 110 | bcopy(src_bytes, buf + offset, len); |
| 111 | } |
| 112 | |
| 113 | /* |
| 114 | * Scatter-gather data copy from an mbuf chain to the current kernel buffer. |