Re: [tcpdump-workers] Filter works in tcpdump, but not in my libpcap

2006-12-31 Thread ness
It probably isn't of direct relevance, but it at least indicates what type of machine you're running on, which limits the set of operating systems you're likely to be using; you didn't mention that, but the OS *is* of great relevance here. Is it OS X, Linux, Windows, or some non-OS X BSD-fla

Re: [tcpdump-workers] Filter works in tcpdump, but not in my libpcap

2006-12-31 Thread Guy Harris
ness wrote: Below are a few interesting snippets of my code pertaining to libpcap. All of the code is running on the main thread. Tcpdump and my implementation both ran on an Airport Extreme card with WEP, but I doubt that serves any relevance. It probably isn't of direct relevance, but it a

[tcpdump-workers] Filter works in tcpdump, but not in my libpcap implementation?

2006-12-31 Thread ness
Hi- I am coding an app that is supposed to capture packets based on the first 3 bytes of the ethernet header -- the destination MAC OUI -- and bytes 7 through 9 -- the source MAC OUI. In other words, I am sniffing for any packets that have to do with a host whose ethernet address begins with