| 2161 | } |
| 2162 | |
| 2163 | void |
| 2164 | pf_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 | |
| 2176 | u_int16_t |
| 2177 | pf_proto_cksum_fixup(struct mbuf *m, u_int16_t cksum, u_int16_t old, |
no test coverage detected