diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-06-25 09:16:35 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-06-25 09:16:35 +0000 |
commit | 1092258311b4488efe6b317745090fff7f08bb93 (patch) | |
tree | ee0ed95ddf10c20690212542faab6f7b123a124f /sys/net/if_pflog.h | |
parent | bdc44403f335a39fb4f8fefe713659a2173c95b0 (diff) |
Protect various driver descriptors by _KERNEL to stop exposing to much
stuff to userland, especially the "struct ifnet".
ok sthen@, henning@, uebayasi@
Diffstat (limited to 'sys/net/if_pflog.h')
-rw-r--r-- | sys/net/if_pflog.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/net/if_pflog.h b/sys/net/if_pflog.h index 949b20eaf80..ffd3f58bcfd 100644 --- a/sys/net/if_pflog.h +++ b/sys/net/if_pflog.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pflog.h,v 1.23 2012/07/08 07:58:09 henning Exp $ */ +/* $OpenBSD: if_pflog.h,v 1.24 2013/06/25 09:16:34 mpi Exp $ */ /* * Copyright 2001 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -29,12 +29,6 @@ #include <net/pfvar.h> -struct pflog_softc { - struct ifnet sc_if; /* the interface */ - int sc_unit; - LIST_ENTRY(pflog_softc) sc_list; -}; - #define PFLOG_RULESET_NAME_SIZE 16 struct pfloghdr { @@ -66,6 +60,13 @@ struct pfloghdr { #define PFLOG_OLD_HDRLEN offsetof(struct pfloghdr, pad) #ifdef _KERNEL + +struct pflog_softc { + struct ifnet sc_if; /* the interface */ + int sc_unit; + LIST_ENTRY(pflog_softc) sc_list; +}; + void pflog_bpfcopy(const void *, void *, size_t); #if NPFLOG > 0 |