diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-11-15 06:32:38 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-11-15 06:32:38 +0000 |
commit | 6a20c7bbc5e98c72bda45f7b7e17336694ec5580 (patch) | |
tree | a387ae6866e8e50e796c83937e84df6ee7838647 /proto.h | |
parent | 1fca132c59ad267b19719cd1b061255ef5751e17 (diff) | |
download | wireshark-6a20c7bbc5e98c72bda45f7b7e17336694ec5580.tar.gz wireshark-6a20c7bbc5e98c72bda45f7b7e17336694ec5580.tar.bz2 wireshark-6a20c7bbc5e98c72bda45f7b7e17336694ec5580.zip |
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
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* proto.h * Definitions for protocol display * - * $Id: proto.h,v 1.18 1999/11/11 16:20:25 nneul Exp $ + * $Id: proto.h,v 1.19 1999/11/15 06:32:15 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -37,6 +37,10 @@ # include <winsock.h> #endif +#ifndef __IPV4_H__ +#include "ipv4.h" +#endif + /* needs glib.h */ typedef struct GNode proto_tree; typedef struct GNode proto_item; @@ -122,6 +126,7 @@ typedef struct field_info { gchar *string; guint8 *bytes; guint8 ether[6]; + ipv4_addr ipv4; guint8 ipv6[16]; } value; } field_info; |