tcpdump mailing list archives
Re: does "port 25" work?
From: "U. George" <netbeans () gatworks com>
Date: Thu, 31 Jul 2008 23:53:27 -0400
Guy Harris wrote:
Not so. The log of "*" is the sum of all the "*"'s. which "port *" is a part of. Optimization suggests that all "*"'s are true, and need not be tested.On Jul 31, 2008, at 11:29 AM, U. George wrote:if i say this: tcpdump -n -v -i eth1 i get a log of: ether type * and port *, ie the PPPoE data.What you get is a log of "*", i.e. all data. "port *" is irrelevant;
Not terribly relevant. expression will always be false ( ie port domain will never match anything from those ethertypes ) .not all packets that would match "ether type *" *HAVE* a port number.
Without a detailed study, on my part, I am unable to jump to that conclusion. Specifying port does not necessarily also specify ether type ( or anything else ).If i say tcpdump -n -v -i eth1 port domaini get a filter of ether (type UDP or TCP) and port domain, and no PPPoE data"port domain" is equivalent to "tcp port domain or udp port domain", which is equivalent to "(tcp or udp) and "(tcp port domain or udp port domain)", which is equivalent to "ip and (tcp or udp) and (tcp port domain or udp port domain)".For better or worse, "ip" on Ethernet is equivalent to "ether type ip", so "port domain" is equivalent to"ether type ip and (tcp or udp) and (tcp port domain or udp port domain)".
- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Re: does "port 25" work?, (continued)
- Re: does "port 25" work? Guy Harris (Jul 31)
- Re: does "port 25" work? U. George (Jul 31)
- Re: does "port 25" work? U. George (Jul 31)
- Re: does "port 25" work? Guy Harris (Jul 31)
- Re: does "port 25" work? Guy Harris (Jul 31)
- Re: does "port 25" work? U. George (Jul 31)
- Re: does "port 25" work? Stephen Donnelly (Jul 31)
- Re: does "port 25" work? U. George (Jul 31)
- Re: does "port 25" work? Stephen Donnelly (Jul 31)
- Re: does "port 25" work? U. George (Jul 31)
- Re: does "port 25" work? Guy Harris (Jul 31)
- Re: does "port 25" work? Guy Harris (Jul 31)
- Re: does "port 25" work? U. George (Jul 31)
- Re: does "port 25" work? Guy Harris (Aug 01)
- Re: does "port 25" work? Gert Doering (Aug 01)
- Re: does "port 25" work? Guy Harris (Aug 01)
- Re: does "port 25" work? Gert Doering (Aug 02)