diff options
author | mlaier <mlaier@FreeBSD.org> | 2007-10-16 02:12:06 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2007-10-16 02:12:06 +0000 |
commit | 8ad5ea95ae1b7cb41fe6ba81326cd93641cfc371 (patch) | |
tree | a5a3831a193232968a32df493bb6f4ff0f474c37 | |
parent | f6e703bfb6cc4551edeff140d10652fd6da0dd18 (diff) | |
download | FreeBSD-src-8ad5ea95ae1b7cb41fe6ba81326cd93641cfc371.zip FreeBSD-src-8ad5ea95ae1b7cb41fe6ba81326cd93641cfc371.tar.gz |
Update for libpcap 0.9.8
-rw-r--r-- | contrib/pf/pflogd/pflogd.c | 3 | ||||
-rw-r--r-- | usr.sbin/wpa/l2_packet.c | 13 |
2 files changed, 10 insertions, 6 deletions
diff --git a/contrib/pf/pflogd/pflogd.c b/contrib/pf/pflogd/pflogd.c index 6f57b9e..74e3569 100644 --- a/contrib/pf/pflogd/pflogd.c +++ b/contrib/pf/pflogd/pflogd.c @@ -37,6 +37,9 @@ __FBSDID("$FreeBSD$"); #include <sys/ioctl.h> #include <sys/file.h> #include <sys/stat.h> +#ifdef __FreeBSD__ +#include <net/bpf.h> /* BIOCLOCK */ +#endif #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/wpa/l2_packet.c b/usr.sbin/wpa/l2_packet.c index b8beb78..6c4c6b3 100644 --- a/usr.sbin/wpa/l2_packet.c +++ b/usr.sbin/wpa/l2_packet.c @@ -18,23 +18,24 @@ /* * FreeBSD-specific implementation. */ -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <errno.h> -#include <pcap.h> - #include <sys/types.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <sys/sysctl.h> +#include <net/bpf.h> #include <net/if.h> #include <net/if_dl.h> #include <net/route.h> #include <netinet/in.h> #include <arpa/inet.h> +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <errno.h> +#include <pcap.h> + #include "common.h" #include "eloop.h" #include "l2_packet.h" |