Wireshark-bugs: [Wireshark-bugs] [Bug 5538] ipv6.addr (etc) filter should be able to be specifie
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5538
--- Comment #4 from Stephen Fisher <steve@xxxxxxxxxxxxxxxxxx> 2011-01-10 12:20:15 MST ---
(In reply to comment #3)
> Great... I came to the same conclusion, but was not able to find time to take
> on such a large task now. If you have any intermediate diffs we might be able
> to work on it together...
There are a number of comparison functions in the IPv4 code (epan/ipv4.c) that
apply the netmask to the address using a standard logical and such as "address
& mask" where both are an unsigned 32-bit integer (guint32). 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).
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.