--- libpcap/pcap-linux.c.orig 2003-10-03 19:59:36.000000000 +0200 +++ libpcap/pcap-linux.c 2003-10-03 20:10:44.000000000 +0200 @@ -1074,10 +1074,10 @@ } break; -#ifndef ARPHRD_HDLC -#define ARPHRD_HDLC 513 /* From Linux 2.2.13 */ +#ifndef ARPHRD_CISCO +#define ARPHRD_CISCO 513 /* previously ARPHRD_HDLC */ #endif - case ARPHRD_HDLC: + case ARPHRD_CISCO: handle->linktype = DLT_C_HDLC; break; @@ -1097,6 +1097,10 @@ #define ARPHRD_RAWHDLC 518 #endif case ARPHRD_RAWHDLC: +#ifndef ARPHRD_DLCI +#define ARPHRD_DLCI 15 +#endif + case ARPHRD_DLCI: /* * XXX - should some of those be mapped to DLT_LINUX_SLL * instead? Should we just map all of them to DLT_LINUX_SLL? @@ -1104,6 +1108,13 @@ handle->linktype = DLT_RAW; break; +#ifndef ARPHRD_FRAD +#define ARPHRD_FRAD 770 +#endif + case ARPHRD_FRAD: + handle->linktype = DLT_FRELAY; + break; + case ARPHRD_LOCALTLK: handle->linktype = DLT_LTALK; break;