Ethereal-users: Re: [Ethereal-users] Cannot filter on dst net?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Jeff Davis <jdavis@xxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Nov 2005 15:26:30 -0800
Thanks for the quick reply.

If this is like most problems I encounter, it's probably a self-inflicted wound.

This is the error message:

"net" was unexpected in this context.

The following display filter isn't a valid display filter:
(dst net 187 or tcp dst net 197)
See the help for a description of the display filter syntax.

Here's the filter:
(tcp dst net 0 or tcp dst net 1 or tcp dst net 2 or tcp dst net 5 or tcp dst net 7 or tcp dst net 23 or tcp dst net 27 or tcp dst net 31 or tcp dst net 36 or tcp dst net 37 or tcp dst net 39 or tcp dst net 42 or tcp dst net 49 or tcp dst net 50 or tcp dst net 77 or tcp dst net 78 or tcp dst net 79 or tcp dst net 89 or tcp dst net 90 or tcp dst net 91 or tcp dst net 92 or tcp dst net 93 or tcp dst net 94 or tcp dst net 95 or tcp dst net 96 or tcp dst net 97 or tcp dst net 98 or tcp dst net 99 or tcp dst net 100 or tcp dst net 101 or tcp dst net 102 or tcp dst net 103 or tcp dst net 104 or tcp dst net 105 or tcp dst net 106 or tcp dst net 107 or tcp dst net 108 or tcp dst net 109 or tcp dst net 110 or tcp dst net 111 or tcp dst net 112 or tcp dst net 113 or tcp dst net 114 or tcp dst net 115 or tcp dst net 116 or tcp dst net 117 or tcp dst net 118 or tcp dst net 119 or tcp dst net 120 or tcp dst net 121 or tcp dst net 122 or tcp dst net 123 or tcp dst net 127 or tcp dst net 173 or tcp dst net 174 or tcp dst net 175 or tcp dst net 176 or tcp dst net 177 or tcp dst net 178 or tcp dst net 179 or tcp dst net 180 or tcp dst net 181 or tcp dst net 182 or tcp dst net 183 or tcp dst net 184 or tcp dst net 185 or tcp dst net 186 or tcp dst net 187 or tcp dst net 197)


Guy Harris wrote:

You're probably missing *something*, given that Ethereal uses the same code for capturing that tcpdump/WinDump does (libpcap/WinPcap), which includes the code that does filter expression compilation and filtering.

What error does it report when you try to use "src net" or "dst net", and what filter expression are you typing into the filter dialog box?

_______________________________________________
Ethereal-users mailing list
Ethereal-users@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-users