tcpdump mailing list archives

Re: "not vlan" filter expression broken catastrophically!


From: Michael Richardson <mcr () sandelman ca>
Date: Fri, 01 Feb 2013 20:07:23 -0500


"Ani" == Ani Sinha <ani () aristanetworks com> writes:
    Ani> hello folks :

    Ani> As you guys have been aware, I am hacking libpcap for a
    Ani> while. Me and Bill noticed something seriously broken for any
    Ani> filter expression that has a "not vlan" in it. For example,
    Ani> take a look at the filter code generated by libpcap with an
    Ani> expression like "not vlan and tcp port 80" :

    Ani> BpfExpression '(not vlan and tcp port 80)' { 0x28, 0, 0,

Do we have any way to test libpcap expression outputs other than -d
options to tcpdump?  I'm thinking regression tests here.

-- 
]               Never tell me the odds!                 | ipv6 mesh networks [ 
]   Michael Richardson, Sandelman Software Works        | network architect  [ 
]     mcr () sandelman ca  http://www.sandelman.ca/        |   ruby on rails    [ 
        
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers


Current thread: