diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2020-09-09 15:53:26 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2020-09-09 15:53:26 +0000 |
commit | 1cb386599da6c4c045b16d27f67fb48059df9cd7 (patch) | |
tree | 0d685aafd3873eddfd121f9454401133981c8e60 /sys/arch/octeon | |
parent | c66c8847ea23ffab089e818e9c7b71745bf66682 (diff) |
Make ogx(4)'s outbound bpf(4) tap actually work
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r-- | sys/arch/octeon/dev/if_ogx.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/octeon/dev/if_ogx.c b/sys/arch/octeon/dev/if_ogx.c index 13a9cd32a7d..e94d860cd17 100644 --- a/sys/arch/octeon/dev/if_ogx.c +++ b/sys/arch/octeon/dev/if_ogx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ogx.c,v 1.1 2019/11/04 14:58:40 visa Exp $ */ +/* $OpenBSD: if_ogx.c,v 1.2 2020/09/09 15:53:25 visa Exp $ */ /* * Copyright (c) 2019 Visa Hankala @@ -20,6 +20,8 @@ * Driver for OCTEON III network processor. */ +#include "bpfilter.h" + #include <sys/param.h> #include <sys/systm.h> #include <sys/atomic.h> @@ -34,6 +36,10 @@ #include <netinet/in.h> #include <netinet/if_ether.h> +#if NBPFILTER > 0 +#include <net/bpf.h> +#endif + #include <dev/mii/mii.h> #include <dev/mii/miivar.h> |