ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 6882] New: When filtering on a single-byte byte-array slic

Date: Tue, 28 Feb 2012 14:59:24 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6882

           Summary: When filtering on a single-byte byte-array slice,
                    using a normal hex string would be nice
           Product: Wireshark
           Version: 1.6.5
          Platform: x86-64
        OS/Version: Red Hat
            Status: NEW
          Severity: Enhancement
          Priority: Low
         Component: Wireshark
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: gram@xxxxxxxxxxxxxxx


Created attachment 7914
  --> https://bugs.wireshark.org/bugzilla/attachment.cgi?id=7914
Proposed changes

Build Information:
n/a
--
The byte slice syntax assumes a sequence of hex digits on the RHS of a display 
filter test. When the byte slice is only 1 byte long, the syntax looks strange:

wlan_mgt.cisco.ccx1.unknown[8:1] == 19

when the more natural method of using "0x19", like this, is a syntax error:

wlan_mgt.cisco.ccx1.unknown[8:1] == 0x19

The proposed diff allows hex integers to be expressed with "0x" when the byte 
slice is 1 byte long.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.