Add "class" that understands IPv4 addresses and subnet masks.
authorGilbert Ramirez <gram@alumni.rice.edu>
Mon, 15 Nov 1999 06:32:38 +0000 (06:32 -0000)
committerGilbert Ramirez <gram@alumni.rice.edu>
Mon, 15 Nov 1999 06:32:38 +0000 (06:32 -0000)
commit6a20c7bbc5e98c72bda45f7b7e17336694ec5580
treea387ae6866e8e50e796c83937e84df6ee7838647
parent1fca132c59ad267b19719cd1b061255ef5751e17
Add "class" that understands IPv4 addresses and subnet masks.
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
Makefile.am
dfilter-grammar.y
dfilter-int.h
dfilter.c
doc/ethereal.pod.template
ipv4.c [new file with mode: 0644]
ipv4.h [new file with mode: 0644]
proto.c
proto.h