aboutsummaryrefslogtreecommitdiffstats
path: root/ipv4.h
AgeCommit message (Collapse)AuthorFilesLines
1999-11-19Change ipv4 class to use ip_to_str() when converting IP address to string.Gilbert Ramirez1-3/+4
ip_to_str() is 7 times faster than my sprintf() implementation (both of which take very little time for the single call that match_selected() makes, but you know....) svn path=/trunk/; revision=1071
1999-11-19Change match_selected() to produce a display filter using the selectedGilbert Ramirez1-1/+4
field's name, if possible. (If the selected field is not a registered field, then of course, we still have to use the frame[x:y] syntax). tree_selected_start and tree_selected_len are on longer globals variables; finfo_selected has replaced them. svn path=/trunk/; revision=1070
1999-11-15Add "class" that understands IPv4 addresses and subnet masks.Gilbert Ramirez1-0/+60
We now store IPv4 addresses in host order, allowing non-equivalence comparisons. That is, display filters with lt, le, gt, and ge will work on big-endian and little-endian machines. CIDR notation is now supported for IPv4 addresses in display filters. You can test to see if an IPv4 address is on a certain subnet by using this notation. For example, to test for IPv4 packets on a Class-C network: ip.addr == 192.168.1.0/24 svn path=/trunk/; revision=1032