Ethereal-dev: [Ethereal-dev] ethereal fails to work with loopback device on OpenBSD (patch ins

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Denis A. Doroshenko" <d.doroshenko@xxxxxxxxxxx>
Date: Sat, 27 Jan 2001 23:04:31 +0200
hello, while playing with ethereal (i'd like to add GTP support to
it), i noticed that OpenBSD port of ethereal doesn't work with network
loopback. hmm, i looked at http://www.ethereal.com, took newer
version (0.8.15) and tried with it. yes, configuring and building from
scratch is better than in 0.8.14 (there i needed to edit Makefiles to
make it comile)... but it still doesn't work with loX devices!

after some diggin around wiretap directotry and especially libpcap.c
file, i made such changes, that makes ethereal work with the loopbacks
as expected. see the diff attached at the bottom, it's just three
includes, which define several thigs, and make ethereal's ifdefs do
the right thing... patch is to be applies from ethereal source's root
directory...

will the changes see the light in 0.8.16? :-)

-- 
Denis A. Doroshenko  [GPRS/IN/WAP, VAS group engineer] .-.        _|_  |
[Omnitel Ltd., T.Sevcenkos st. 25, Vilnius, Lithuania] | | _ _  _ .| _ |
[Phone: +370 9863207 E-mail: d.doroshenko@xxxxxxxxxxx] |_|| | || |||(/_|_

--- ./wiretap/libpcap.c.orig	Sat Dec 23 10:06:15 2000
+++ ./wiretap/libpcap.c	Sat Jan 27 22:53:46 2001
@@ -23,6 +23,11 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+#ifdef __OpenBSD__
+#include <sys/types.h>
+#include <sys/time.h>
+#include <net/bpf.h>
+#endif
 #include <stdlib.h>
 #include <errno.h>
 #include "wtap-int.h"