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 5538] ipv6.addr (etc) filter should be able to be specifie

Date: Fri, 6 May 2011 09:40:41 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5538

Jakub Zawadzki <darkjames@xxxxxxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darkjames@xxxxxxxxxxxxxxxx

--- Comment #6 from Jakub Zawadzki <darkjames@xxxxxxxxxxxxxxxx> 2011-05-06 09:40:41 PDT ---
(In reply to comment #4)
> What is the best way to do this with IPv6 though? 
> Wireshark typically handles IPv6 addresses as
> a string of 16 unsigned 8-bit bytes (guint8). 
> A brief look at FreeBSD's kernel code shows that they can represent it 
> as 4 32-bit unsigned integers or 8 16-bit unsigned integers (shorts) 
> or 16 8-bit unsigned integers (char).

Hmm, if we use bigger type than guint8 this function should work faster with
bigger prefixes.

For example in /128, we'd compare 4 guint32 (or 2 guint64) instead of 16
guint8.

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