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

Function pf_patch_16_unaligned

freebsd/netpfil/pf/pf.c:2152–2161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2150}
2151
2152void
2153pf_patch_16_unaligned(struct mbuf *m, u_int16_t *cksum, void *f, u_int16_t v,
2154 bool hi, u_int8_t udp)
2155{
2156 u_int8_t *fb = (u_int8_t *)f;
2157 u_int8_t *vb = (u_int8_t *)&v;
2158
2159 pf_patch_8(m, cksum, fb++, *vb++, hi, udp);
2160 pf_patch_8(m, cksum, fb++, *vb++, !hi, udp);
2161}
2162
2163void
2164pf_patch_32_unaligned(struct mbuf *m, u_int16_t *cksum, void *f, u_int32_t v,

Callers 1

pf_normalize_tcpoptFunction · 0.85

Calls 1

pf_patch_8Function · 0.85

Tested by

no test coverage detected