Re: [tcpdump-workers] Libpcap compile

2005-11-11 Thread Alexander Dupuy
Guy Harris writes: tcp && (ip[2:2] > (((ip[0]&0xF) + (tcp[12] >> 4)) << 2)) Extending this to check for TCP or UDP with non-empty payload, I got the following: # tcpdump -d 'ip && ((tcp && (ip[2:2] > ((ip[0]&0xF) + (tcp[12] >> 4)) << 2)) || (udp && udp[4:2] > 8))' (000) ldh [12] (001

Re: [tcpdump-workers] Libpcap compile

2005-11-09 Thread Guy Harris
On Nov 9, 2005, at 9:59 AM, Rick Jones wrote: Vossie wrote: Sorry guys. I was typing too fast. I mean HTTP packets (that transfer the data) and not the TCP ACK's :-) Looking at a stream of HTTP carried in TCP segments without looking at the ACKs seems a bit odd, but if you really don't w

Re: [tcpdump-workers] Libpcap compile

2005-11-09 Thread Rick Jones
Vossie wrote: Sorry guys. I was typing too fast. I mean HTTP packets (that transfer the data) and not the TCP ACK's :-) Looking at a stream of HTTP carried in TCP segments without looking at the ACKs seems a bit odd, but if you really don't want to see the bare ACKs, you could probably filter

Re: [tcpdump-workers] Libpcap compile

2005-11-09 Thread Vossie
Sorry guys. I was typing too fast. I mean HTTP packets (that transfer the data) and not the TCP ACK's :-) - Original Message - From: "Vossie" <[EMAIL PROTECTED]> To: Sent: Wednesday, November 09, 2005 2:15 PM Subject: [tcpdump-workers] Libpcap compile Hi What is t

[tcpdump-workers] Libpcap compile

2005-11-09 Thread Vossie
Hi What is the syntax as input to pcap_compile to only capture HTTP packages and not the TCP ACK's? Thanks in advance- This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.