]> The Tcpdump Group git mirrors - libpcap/commitdiff
Support for ARPHRD_RAWHDLC, as used by, for example, the Cyclades PC300
authorguy <guy>
Thu, 7 Mar 2002 11:27:57 +0000 (11:27 +0000)
committerguy <guy>
Thu, 7 Mar 2002 11:27:57 +0000 (11:27 +0000)
synchronous board in Raw HDLC mode, from Octavian Cerna
<[email protected]>.

CREDITS
pcap-linux.c

diff --git a/CREDITS b/CREDITS
index 34e88d2d7c696aae6dc443cbea47bc3c5ad18947..0da646b58dc91aa379ab707072f51da3c0255a49 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -37,6 +37,7 @@ Additional people who have contributed patches:
        Marcus Felipe Pereira           <[email protected]>
        Martin Husemann                 <[email protected]>
        Monroe Williams                 <[email protected]>
+       Octavian Cerna                  <[email protected]>
        Olaf Kirch                      <[email protected]>
        Onno van der Linden             <[email protected]>
        Pavel Kankovsky                 <[email protected]>
index b9e4e2aa876484f899d074bcdba9d7bb27ce1230..8fba82aed6339e809ed90ef886beb18eb2c36286 100644 (file)
@@ -26,7 +26,7 @@
  */
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.78 2002-02-22 09:20:11 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.79 2002-03-07 11:27:58 guy Exp $ (LBL)";
 #endif
 
 /*
@@ -1057,6 +1057,10 @@ static void map_arphrd_to_dlt(pcap_t *handle, int arptype, int cooked_ok)
        case ARPHRD_CSLIP6:
        case ARPHRD_ADAPT:
        case ARPHRD_SLIP:
+#ifndef ARPHRD_RAWHDLC
+#define ARPHRD_RAWHDLC 518
+#endif
+       case ARPHRD_RAWHDLC:
                /*
                 * XXX - should some of those be mapped to DLT_LINUX_SLL
                 * instead?  Should we just map all of them to DLT_LINUX_SLL?