summaryrefslogtreecommitdiff
path: root/sys/net/if_pflog.c
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2001-06-25 23:02:21 +0000
committerNiels Provos <provos@cvs.openbsd.org>2001-06-25 23:02:21 +0000
commit991bda7988c0af22aa5f9762c24f0b95e11bc486 (patch)
tree56bf1e0c4c85364cf30d1068889ecbe2ec477736 /sys/net/if_pflog.c
parent7c69cf6866bd05c89faae322d335b26ec28db076 (diff)
extend the logging via a new link header type. export interface, direction,
action and rule nr.
Diffstat (limited to 'sys/net/if_pflog.c')
-rw-r--r--sys/net/if_pflog.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/net/if_pflog.c b/sys/net/if_pflog.c
index 37fa1ffcc82..e3fa20367be 100644
--- a/sys/net/if_pflog.c
+++ b/sys/net/if_pflog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pflog.c,v 1.2 2001/06/25 21:07:44 art Exp $ */
+/* $OpenBSD: if_pflog.c,v 1.3 2001/06/25 23:02:18 provos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -69,10 +69,6 @@
#define DPRINTF(x)
#endif
-#if NPFLOG != 2
-#error "if_plog needs exactly two interfaces, fix sys/conf/GENERIC"
-#endif
-
struct pflog_softc pflogif[NPFLOG];
void pflogattach(int);
@@ -100,13 +96,13 @@ pflogattach(int npflog)
ifp->if_ioctl = pflogioctl;
ifp->if_output = pflogoutput;
ifp->if_start = pflogstart;
- ifp->if_type = IFT_LOOP;
+ ifp->if_type = IFT_PFLOG;
ifp->if_snd.ifq_maxlen = ifqmaxlen;
ifp->if_hdrlen = PFLOG_HDRLEN;
if_attach(ifp);
#if NBPFILTER > 0
- bpfattach(&pflogif[i].sc_if.if_bpf, ifp, DLT_LOOP,
+ bpfattach(&pflogif[i].sc_if.if_bpf, ifp, DLT_PFLOG,
PFLOG_HDRLEN);
#endif
#ifdef INET6