]> The Tcpdump Group git mirrors - libpcap/commitdiff
last-resort def for IPPROTO_NONE.
authoritojun <itojun>
Sat, 30 Oct 1999 05:16:35 +0000 (05:16 +0000)
committeritojun <itojun>
Sat, 30 Oct 1999 05:16:35 +0000 (05:16 +0000)
gencode.c

index 8b8be7841ba1e156bdc1559b13df21eb8448d113..29f53fdf8e47940fe745e61957c287f13b692015 100644 (file)
--- a/gencode.c
+++ b/gencode.c
@@ -21,7 +21,7 @@
  */
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.96 1999-10-30 04:30:14 itojun Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.97 1999-10-30 05:16:35 itojun Exp $ (LBL)";
 #endif
 
 #include <sys/types.h>
@@ -1566,6 +1566,9 @@ gen_protochain(v, proto, dir)
        fix5 = i;
        i++;
 
+#ifndef IPPROTO_NONE
+#define IPPROTO_NONE   59
+#endif
        /* if (A == IPPROTO_NONE) goto end */
        s[i] = new_stmt(BPF_JMP|BPF_JEQ|BPF_K);
        s[i]->s.jt = NULL;      /*later*/