[Bro] OpenBSD bro-1.1

Christian Kreibich christian at whoop.org
Wed May 24 04:30:58 PDT 2006

On Tue, 2006-05-23 at 16:53 -0400, Jean-Philippe Luiggi wrote:
> Hello all,
> Christian,  Open isn't so bad.... :-))

I'm not going to comment on the quality of the OS, but it sure as hell
is regularly causing me build headaches!

> ===
> Beside of this, while playing with the new release i too run into the problem
> Lee is talking about.
> To solve the problem with ARP.h, we just need to include/use :
> #include <net/ethertypes.h>,

Ah, but that is available neither on Linux, nor on FreeBSD, nor MacOS. I
got it to work using this instead:

--- ARP.h       20 Dec 2005 00:48:12 -0000      1.3
+++ ARP.h       22 May 2006 15:11:16 -0000
@@ -24,8 +24,10 @@

 #include <sys/types.h>
 #include <sys/socket.h>
+#include <netinet/in.h>
+#include <net/if.h>
 #include <net/if_arp.h>
-#include <net/ethernet.h>
+#include <netinet/if_ether.h>

I was hoping that'd be portable enough so we can do without an ifdef,
but haven't tried the other platforms yet.

> i guess using an #ifdef (HAVE_OPENBSD) should
> be a solution.

Yeah, if we have to.

> So the question is : is this definition directly available upon running
> ./configure ?

Sure, look at configure.in, most of that stuff is checked for already.
It's just a matter of translating it down into the code with the least
amount of clutter.

> Another thing i'm working into is the non blocking DNS. I discovered using 

So non-blocking DNS in Bro is actually currently broken on OpenBSD?

> the following OpenBSD's package (considering the 3.9 release)  :
> libbind-9.2.3p1     BIND 8 compatible stub resolver library
> should give us the various ns_... definition. I'm now fighting with 
> "m4" in order to implement something as
> --with-bind-lib=
> --with-bind-includes=
> into configure.am, should this sound right ?

Yeah, though I don't think you need to fight at the m4 level but rather
at the level of what autoconf already gives you (like AC_LINK_IFELSE).

Thanks for your efforts!


More information about the Bro mailing list