aboutsummaryrefslogtreecommitdiffstats
path: root/savefile.c
diff options
context:
space:
mode:
authorDarren Reed <Darren.Reed@Sun.COM>2009-11-24 21:40:44 -0500
committerMichael Richardson <mcr@sandelman.ottawa.on.ca>2009-11-24 21:40:44 -0500
commitbdc25fca79411dbaed26989fb40bf3d8877662b6 (patch)
tree6f685805a1e1cbcde120ccef236a0a789ca99428 /savefile.c
parent5aa0044891da5206cce168ff00f56340f7b01867 (diff)
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.
Diffstat (limited to 'savefile.c')
-rw-r--r--savefile.c5
1 files changed, 5 insertions, 0 deletions
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 }
};