Re: [Wireshark-dev] Should an IPv4 netmask be its own fieldtype?

2015-09-30 Thread Jeffrey Smith
RFC950: "Since the bits that identify the subnet are specified by a bitmask, they need not be adjacent in the address. However, we recommend that the subnet bits be contiguous and located as the most significant bits of the local address." So essentially any mask IS legal (even if not

[Wireshark-dev] The 'in' display filter operation

2015-08-22 Thread Jeffrey Smith
I decided to try my hand implementing the 'in' operator. I used the syntax 'x in {a,b,c}' (with commas). In code I created a set type that contains a GSList of stnode_t's. At the gencode layer, I effectively generate an OR-ed series of equality operations, but I cut out the redundant existence