]> The Tcpdump Group git mirrors - libpcap/commitdiff
Not all Linuxes define ARPHRD_IRDA; define it if it's not defined.
authorguy <guy>
Mon, 6 Sep 2004 01:23:17 +0000 (01:23 +0000)
committerguy <guy>
Mon, 6 Sep 2004 01:23:17 +0000 (01:23 +0000)
pcap-linux.c

index 4dbfeb00c3ab4fc087f3ae211da6d3d3e66257ed..3e0e37bd9a7e26f1d7aed8c36ff0988f06332f4c 100644 (file)
@@ -27,7 +27,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.108 2004-04-07 08:03:32 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.109 2004-09-06 01:23:17 guy Exp $ (LBL)";
 #endif
 
 /*
@@ -1240,6 +1240,9 @@ static void map_arphrd_to_dlt(pcap_t *handle, int arptype, int cooked_ok)
                handle->linktype = DLT_IP_OVER_FC;
                break;
 
+#ifndef ARPHRD_IRDA
+#define ARPHRD_IRDA    783
+#endif
        case ARPHRD_IRDA:
                /* Don't expect IP packet out of this interfaces... */
                handle->linktype = DLT_LINUX_IRDA;