Wireshark mailing list archives

Re: Is "tcp.len < -1" a valid display filter?


From: Stig Bjørlykke <stig () bjorlykke org>
Date: Fri, 28 Oct 2011 09:00:59 +0200

On Thu, Oct 27, 2011 at 9:12 PM, Stephen Fisher
<steve () stephen-fisher com> wrote:
Is there a problem with accepting -1 in that filter?

It's not a problem, but it's a bug in the logic because the filter
does not do what it's supposed to.

If so, should the
filter be checked against possible values of the value, i.e. tcp.len is
a FT_UINT32 so only accept unsigned 32-bit values and mark the
background as red / bad filter if not?

The previously attached patch does check for signed/unsigned issues,
and will mark the filter as bad/red.
I think it would be nice to check all values if they are valid for the
given field.


-- 
Stig Bjørlykke
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: