OpenBSD 3.1
Peter Van Epp
vanepp at sfu.ca
Tue May 21 19:48:38 EDT 2002
And the obvious answer:
*** include/net/bpf.h.orig Tue May 21 08:01:16 2002
--- include/net/bpf.h Tue May 21 08:03:17 2002
***************
*** 139,144 ****
--- 139,151 ----
#define BIOCSUDPF _IOW('B',115, struct bpf_program)
#endif
+ #if defined(__OpenBSD__)
+ struct bpf_timeval {
+ u_int32_t tv_sec;
+ u_int32_t tv_usec;
+ };
+ #endif
+
/*
* Structure prepended to each packet.
*/
Breaks something in the snoop code further on:
gcc -O2 -I. -I../include -DHAVE_TCP_WRAPPER=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -c ./ArgusSource.c
./ArgusSource.c: In function `ArgusSnoopRead':
./ArgusSource.c:407: incompatible types in assignment
*** Error code 1
Presumably because this doesn't like the definition of tv_sec above
for some reason. I'm somewhat inclinded to say "install a local libpcap"
in the argus source directory (which does work without the above patch) and
leave it at that unless Carter can think of something else to do (I'll leave
the OpenBSD machine up in case of suggestions :-)).
Peter Van Epp / Operations and Technical Support
Simon Fraser University, Burnaby, B.C. Canada
More information about the argus
mailing list