From add31c2e28feab1bf0aec0fc0ba494a7efc5fd4e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 4 Jan 2010 12:06:40 -0800 Subject: Add DLT_IPV4 and DLT_IPV6. DLT_IPV4 and DLT_IPV6 are like DLT_RAW, except that you know the version of IP. Also, get rid of some duplicate stuff for DLT_IPNET in savefile.c. --- savefile.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'savefile.c') diff --git a/savefile.c b/savefile.c index 1a2f2be..9704625 100644 --- a/savefile.c +++ b/savefile.c @@ -793,7 +793,12 @@ static const char rcsid[] _U_ = */ #define LINKTYPE_CAN_SOCKETCAN 227 -#define LINKTYPE_IPNET 226 +/* + * Raw IPv4/IPv6; different from DLT_RAW in that the DLT_ value specifies + * whether it's v4 or v6. Requested by Darren Reed . + */ +#define LINKTYPE_IPV4 228 +#define LINKTYPE_IPV6 229 static struct linktype_map { @@ -1137,8 +1142,9 @@ static struct linktype_map { /* CAN frames with SocketCAN headers */ { DLT_CAN_SOCKETCAN, LINKTYPE_CAN_SOCKETCAN }, - /* Solaris IPNET */ - { DLT_IPNET, LINKTYPE_IPNET }, + /* Raw IPv4/IPv6 */ + { DLT_IPV4, LINKTYPE_IPV4 }, + { DLT_IPV6, LINKTYPE_IPV6 }, { -1, -1 } }; -- cgit v1.2.3