openbsd-ports/net/ngrep/patches/patch-ab
1999-06-28 14:27:19 +00:00

17 lines
330 B
Plaintext

--- ngrep.c-orig Mon Jun 28 10:16:15 1999
+++ ngrep.c Mon Jun 28 10:19:28 1999
@@ -209,10 +209,12 @@
ip_offset = PPPHDR_SIZE;
break;
+#if defined(DLT_RAW)
case DLT_RAW:
ip_offset = RAWHDR_SIZE;
break;
-
+#endif
+
default:
fprintf(stderr,"fatal: unsupported interface type\n");
exit(-1);