[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nmap loopback patch (DLT_LOOP 12/108)
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: nmap loopback patch (DLT_LOOP 12/108)
- From: Daniel Hartmeier <daniel_(_at_)_benzedrine_(_dot_)_cx>
- Date: Tue, 25 Jan 2005 22:51:08 +0100
- Cc: fyodor_(_at_)_insecure_(_dot_)_org
The -current nmap port requires the patch below to work on loopback, try
# nmap 127.0.0.1
The comment just above the #define DLT_LOOP seems to suggest this, but I
don't see why Fyodor isn't just doing it himself, like in the DLT_ENC
case just below.
Found by _jason_!jerome_(_at_)_zaxxon_(_dot_)_telerama_(_dot_)_co/EFnet
Daniel
--- libpcap-possiblymodified/pcap-bpf.h.orig Tue Jan 25 22:38:15 2005
+++ libpcap-possiblymodified/pcap-bpf.h Tue Jan 25 22:39:42 2005
@@ -239,8 +239,9 @@
* define it as 108 here. If OpenBSD picks up this file, it should
* define DLT_LOOP as 12 in its version, as per the comment above -
* and should not use 108 as a DLT_ value.
+ *
*/
-#define DLT_LOOP 108
+#define DLT_LOOP 12
/*
* Encapsulated packets for IPsec; DLT_ENC is 13 in OpenBSD, but that's
Visit your host, monkey.org