| 2150 | } |
| 2151 | |
| 2152 | void |
| 2153 | pf_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 | |
| 2163 | void |
| 2164 | pf_patch_32_unaligned(struct mbuf *m, u_int16_t *cksum, void *f, u_int32_t v, |
no test coverage detected