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

Function pf_patch_32_unaligned

freebsd/netpfil/pf/pf.c:2163–2174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2161}
2162
2163void
2164pf_patch_32_unaligned(struct mbuf *m, u_int16_t *cksum, void *f, u_int32_t v,
2165 bool hi, u_int8_t udp)
2166{
2167 u_int8_t *fb = (u_int8_t *)f;
2168 u_int8_t *vb = (u_int8_t *)&v;
2169
2170 pf_patch_8(m, cksum, fb++, *vb++, hi, udp);
2171 pf_patch_8(m, cksum, fb++, *vb++, !hi, udp);
2172 pf_patch_8(m, cksum, fb++, *vb++, hi, udp);
2173 pf_patch_8(m, cksum, fb++, *vb++, !hi, udp);
2174}
2175
2176u_int16_t
2177pf_proto_cksum_fixup(struct mbuf *m, u_int16_t cksum, u_int16_t old,

Callers 2

pf_modulate_sackFunction · 0.85

Calls 1

pf_patch_8Function · 0.85

Tested by

no test coverage detected