Displaying 1 result from an estimated 1 matches for "l3proto_elems_ipv6".
2023 Sep 03
0
[Bug 1062] Kernel IPv6 event filtering not working
...f_load_attr(this, BPF_W, j);
j += nfct_bsf_alu_and(this, f->l3proto[dir][i].mask, j);
j += nfct_bsf_cmp_k_stack(this, ip, jt - j, j, s);
}
there is one comparison per address and if it matches we jump to the end of the
filter.
In the ipv6 case:
for (i = 0; i < f->l3proto_elems_ipv6[dir]; i++) {
int k, offset;
for (k = 0, offset = 0; k < 4; k++, offset += 4) {
int ip = f->l3proto_ipv6[dir][i].addr[k] &
f->l3proto_ipv6[dir][i].mask[k];
j += nfct_bsf_load_attr_offset(this, BPF_W, offset, j);
j +=...