diff options
author | mlaier <mlaier@FreeBSD.org> | 2006-02-05 17:17:32 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2006-02-05 17:17:32 +0000 |
commit | 0c9bbeed735fcdda1e73ad11a546291ac7cd0f38 (patch) | |
tree | cf3414ab53bdaf9af21aec5a91239ee25bae23d9 /sys/contrib/pf/net/if_pflog.h | |
parent | d249843f8b66ce93c375000e8028521cb8c813fb (diff) | |
download | FreeBSD-src-0c9bbeed735fcdda1e73ad11a546291ac7cd0f38.zip FreeBSD-src-0c9bbeed735fcdda1e73ad11a546291ac7cd0f38.tar.gz |
Make pflog a seperate module. As a result pflog_packet() becomes a function
pointer that is declared in pf_ioctl.c
Requested by: yar (as part of the module build reorg)
MFC after: 1 week
X-MFC with: yar's module reorg
Diffstat (limited to 'sys/contrib/pf/net/if_pflog.h')
-rw-r--r-- | sys/contrib/pf/net/if_pflog.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/contrib/pf/net/if_pflog.h b/sys/contrib/pf/net/if_pflog.h index 68560e4..93cb884 100644 --- a/sys/contrib/pf/net/if_pflog.h +++ b/sys/contrib/pf/net/if_pflog.h @@ -70,10 +70,24 @@ struct old_pfloghdr { #ifdef _KERNEL +#ifdef __FreeBSD__ +/* XXX */ +#include <net/pfvar.h> + +typedef int pflog_packet_t(struct pfi_kif *, struct mbuf *, sa_family_t, + u_int8_t, u_int8_t, struct pf_rule *, struct pf_rule *, + struct pf_ruleset *); +extern pflog_packet_t *pflog_packet_ptr; +#define PFLOG_PACKET(i,x,a,b,c,d,e,f,g) do { \ + if (pflog_packet_ptr != NULL) \ + pflog_packet_ptr(i,a,b,c,d,e,f,g); \ +} while (0) +#else #if NPFLOG > 0 #define PFLOG_PACKET(i,x,a,b,c,d,e,f,g) pflog_packet(i,a,b,c,d,e,f,g) #else #define PFLOG_PACKET(i,x,a,b,c,d,e,f,g) ((void)0) #endif /* NPFLOG > 0 */ +#endif /* __FreeBSD__ */ #endif /* _KERNEL */ #endif /* _NET_IF_PFLOG_H_ */ |