Re: [tcpdump-workers] tcpdump filter for HTTP GET

2004-11-08 Thread Robert Lowe
Jefferson Ogata wrote: Robert Lowe wrote: Jefferson Ogata wrote: tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420 Beautiful! But wouldn't the bit-shift be for 4 bits? Thanks It would, but then you'd have to multiply by 4 since the offset is in multiples of 4. So >> 2 does the shift and multiply

Re: [tcpdump-workers] tcpdump filter for HTTP GET

2004-11-08 Thread Jefferson Ogata
Robert Lowe wrote: Jefferson Ogata wrote: tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420 Beautiful! But wouldn't the bit-shift be for 4 bits? Thanks It would, but then you'd have to multiply by 4 since the offset is in multiples of 4. So >> 2 does the shift and multiply in one operation. --

Re: [tcpdump-workers] tcpdump filter for HTTP GET

2004-11-08 Thread Guy Harris
Robert Lowe wrote: Beautiful! But wouldn't the bit-shift be for 4 bits? The TCP header length field (data offset field) is in units of 4-byte words, not in units of bytes, so it has to be multiplied by 4 to be in units of bytes. - This is the tcpdump-workers list. Visit https://lists.sandelman.c

Re: [tcpdump-workers] tcpdump filter for HTTP GET

2004-11-08 Thread Robert Lowe
Jefferson Ogata wrote: Robert Lowe wrote: Anyone have a filter that will capture just HTTP GET requests? I'm looking for something more specific than just "dst host X and tcp dst port 80", but I'm not worried about requests to non-standard ports. I would suspect I could reference tcp[N:3] = G

Re: [tcpdump-workers] tcpdump filter for HTTP GET

2004-11-08 Thread Jefferson Ogata
Robert Lowe wrote: Anyone have a filter that will capture just HTTP GET requests? I'm looking for something more specific than just "dst host X and tcp dst port 80", but I'm not worried about requests to non-standard ports. I would suspect I could reference tcp[N:3] = GET, but can N be an expr

[tcpdump-workers] tcpdump filter for HTTP GET

2004-11-08 Thread Robert Lowe
Hi! Anyone have a filter that will capture just HTTP GET requests? I'm looking for something more specific than just "dst host X and tcp dst port 80", but I'm not worried about requests to non-standard ports. I would suspect I could reference tcp[N:3] = GET, but can N be an expression itself, e.g

[tcpdump-workers] Automatic report from sources (tcpdump libpcap htdocs) between 07.11.2004 - 08.11.2004 GMT

2004-11-08 Thread Automatic cvs log generator /tcpdump/bin/makelog
CVS log entries from 07.11.2004 (Sun) 10:06:46 - 08.11.2004 (Mon) 10:06:42 GMT = Summary by authors = Author: guy File: libpcap/pcap.3; Revisions: 1.63 File: tcpdump/tcpdump.1; Re