]> The Tcpdump Group git mirrors - libpcap/commitdiff
gencode: "all but the lower 2 bits are 1's" is 0xfffffffc, not 0xfffffffe.
authorGuy Harris <[email protected]>
Mon, 31 Jan 2022 06:36:54 +0000 (22:36 -0800)
committerGuy Harris <[email protected]>
Mon, 31 Jan 2022 06:36:54 +0000 (22:36 -0800)
gencode.c

index 9b16a5c1cf845b17f057be02b4ab699f7c76877e..9b094dc3a63df419bd7055a8c2eef4fe7aa1cb86 100644 (file)
--- a/gencode.c
+++ b/gencode.c
@@ -2367,7 +2367,7 @@ gen_load_pflog_llprefixlen(compiler_state_t *cstate)
                s2->s.k = 3;
                sappend(s1, s2);
                s2 = new_stmt(cstate, BPF_ALU|BPF_AND|BPF_K);
-               s2->s.k = 0xfffffffe;
+               s2->s.k = 0xfffffffc;
                sappend(s1, s2);
                 
                /*