openbsd-ports/net/nmap/patches/patch-ab

19 lines
512 B
Plaintext
Raw Normal View History

1999-09-01 14:19:03 -04:00
--- tcpip.c.orig Tue Aug 3 00:29:31 1999
+++ tcpip.c Wed Sep 1 12:12:30 1999
@@ -773,6 +773,7 @@
switch(datalink) {
case DLT_EN10MB: offset = 14; break;
case DLT_IEEE802: offset = 22; break;
+ case DLT_LOOP:
case DLT_NULL: offset = 4; break;
case DLT_SLIP:
#ifdef DLT_SLIP_BSDOS
@@ -799,6 +800,7 @@
#endif /* if freebsd || openbsd || netbsd || bsdi */
1999-09-01 14:19:03 -04:00
break;
case DLT_RAW: offset = 0; break;
+ case DLT_ENC: offset = 12; break;
default: fatal("Unknown datalink type (%d)", datalink);
}