From bdc25fca79411dbaed26989fb40bf3d8877662b6 Mon Sep 17 00:00:00 2001 From: Darren Reed Date: Tue, 24 Nov 2009 21:40:44 -0500 Subject: To compile libpcap on OpenSolaris (or Solaris Express Community Edition) build 125 and later to use the native BPF with both IPNET and traditional MAC (ethernet, etc) packet sniffing, the attached patches are required. The attached patches represent what's in our internal build tree for libpcap. --- savefile.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'savefile.c') diff --git a/savefile.c b/savefile.c index 4832f34..1a2f2be 100644 --- a/savefile.c +++ b/savefile.c @@ -793,6 +793,8 @@ static const char rcsid[] _U_ = */ #define LINKTYPE_CAN_SOCKETCAN 227 +#define LINKTYPE_IPNET 226 + static struct linktype_map { int dlt; @@ -1135,6 +1137,9 @@ static struct linktype_map { /* CAN frames with SocketCAN headers */ { DLT_CAN_SOCKETCAN, LINKTYPE_CAN_SOCKETCAN }, + /* Solaris IPNET */ + { DLT_IPNET, LINKTYPE_IPNET }, + { -1, -1 } }; -- cgit v1.2.3