MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bpf_buffer_append_bytes

Function bpf_buffer_append_bytes

freebsd/net/bpf_buffer.c:103–111  ·  view source on GitHub ↗

* Simple data copy to the current kernel buffer. */

Source from the content-addressed store, hash-verified

101 * Simple data copy to the current kernel buffer.
102 */
103void
104bpf_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.

Callers 1

bpf_append_bytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected