Displaying 1 result from an estimated 1 matches for "nfct_bsf_load_attr".
2023 Sep 03
0
[Bug 1062] Kernel IPv6 event filtering not working
https://bugzilla.netfilter.org/show_bug.cgi?id=1062
--- Comment #2 from Jeremy Sowden <jeremy at azazel.net> ---
In the ipv4 case:
for (i = 0; i < f->l3proto_elems[dir]; i++) {
int ip = f->l3proto[dir][i].addr & f->l3proto[dir][i].mask;
j += nfct_bsf_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_ele...