diff options
author | 2006-10-23 12:46:09 +0000 | |
---|---|---|
committer | 2006-10-23 12:46:09 +0000 | |
commit | bcab8f5281dccc038193259d1159f17aa151fbc8 (patch) | |
tree | 0a126c30cb4f36645510427cc86a393eecb99b40 /sys/net/if_pflog.h | |
parent | fix control message length check, needs CMSG_ALIGN() (diff) | |
download | wireguard-openbsd-bcab8f5281dccc038193259d1159f17aa151fbc8.tar.xz wireguard-openbsd-bcab8f5281dccc038193259d1159f17aa151fbc8.zip |
make the pflog interface clonable.
for now, only allow pflog0 to be created.
keep an array of ifps to the pflog interfaces with the unit # as index for
fast access.
if pflog0 does not exist, no logging is done (just like if it is down).
on machines without pf enabled, this makes the pflog0 interface go away,
on machines with pf, rc sets up pflog0 and starts pflogd, no change there.
idea old (pf2k4 or c2k5?), hacked at the hack.lu 2006 conference, ryan ok
Diffstat (limited to 'sys/net/if_pflog.h')
-rw-r--r-- | sys/net/if_pflog.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/net/if_pflog.h b/sys/net/if_pflog.h index c80a1973456..9f26e29a75b 100644 --- a/sys/net/if_pflog.h +++ b/sys/net/if_pflog.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pflog.h,v 1.12 2005/05/27 17:22:40 dhartmei Exp $ */ +/* $OpenBSD: if_pflog.h,v 1.13 2006/10/23 12:46:09 henning Exp $ */ /* * Copyright 2001 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -27,8 +27,12 @@ #ifndef _NET_IF_PFLOG_H_ #define _NET_IF_PFLOG_H_ +#define PFLOGIFS_MAX 1 + struct pflog_softc { - struct ifnet sc_if; /* the interface */ + struct ifnet sc_if; /* the interface */ + int sc_unit; + LIST_ENTRY(pflog_softc) sc_list; }; #define PFLOG_RULESET_NAME_SIZE 16 |