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

19 lines
495 B
Plaintext
Raw Normal View History

1999-12-07 00:32:00 -05:00
--- tcpip.c.orig Mon Nov 8 03:10:35 1999
+++ tcpip.c Sun Nov 21 18:34:54 1999
1999-09-01 14:19:03 -04:00
@@ -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
1999-12-07 00:32:00 -05:00
@@ -800,6 +801,7 @@
1999-09-01 14:19:03 -04:00
break;
case DLT_RAW: offset = 0; break;
1999-12-07 00:32:00 -05:00
case DLT_FDDI: offset = 21; break;
1999-09-01 14:19:03 -04:00
+ case DLT_ENC: offset = 12; break;
default: fatal("Unknown datalink type (%d)", datalink);
}