]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix PPPoE session ID checks for non-Ethernet links.
authorGuy Harris <[email protected]>
Mon, 9 Feb 2015 11:00:33 +0000 (03:00 -0800)
committerGuy Harris <[email protected]>
Mon, 9 Feb 2015 11:00:33 +0000 (03:00 -0800)
gencode.c

index 770757bb697fbb9cdecc38387f5d468a4317a6ac..04029193260a0bdf3c02f88c985743b614fe6e16 100644 (file)
--- a/gencode.c
+++ b/gencode.c
@@ -8065,7 +8065,7 @@ gen_pppoes(sess_num)
 
        /* If a specific session is requested, check PPPoE session id */
        if (sess_num >= 0) {
-               b1 = gen_mcmp(OR_LINKPL, off_nl, BPF_W,
+               b1 = gen_mcmp(OR_NET, 0, BPF_W,
                    (bpf_int32)sess_num, 0x0000ffff);
                gen_and(b0, b1);
                b0 = b1;