Deleted Added
full compact
if_pflog.h (155337) if_pflog.h (156500)
1/* $FreeBSD: head/sys/contrib/pf/net/if_pflog.h 155337 2006-02-05 17:17:32Z mlaier $ */
1/* $FreeBSD: head/sys/contrib/pf/net/if_pflog.h 156500 2006-03-09 15:54:01Z yar $ */
2/* $OpenBSD: if_pflog.h,v 1.11 2004/05/19 17:50:51 dhartmei Exp $ */
3
4/*
5 * Copyright 2001 Niels Provos <provos@citi.umich.edu>
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 56 unchanged lines hidden (view full) ---

66 u_short action;
67 u_short dir;
68};
69#define OLD_PFLOG_HDRLEN sizeof(struct old_pfloghdr)
70
71#ifdef _KERNEL
72
73#ifdef __FreeBSD__
2/* $OpenBSD: if_pflog.h,v 1.11 2004/05/19 17:50:51 dhartmei Exp $ */
3
4/*
5 * Copyright 2001 Niels Provos <provos@citi.umich.edu>
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 56 unchanged lines hidden (view full) ---

66 u_short action;
67 u_short dir;
68};
69#define OLD_PFLOG_HDRLEN sizeof(struct old_pfloghdr)
70
71#ifdef _KERNEL
72
73#ifdef __FreeBSD__
74/* XXX */
75#include <net/pfvar.h>
74struct pf_rule;
75struct pf_ruleset;
76struct pfi_kif;
76
77typedef int pflog_packet_t(struct pfi_kif *, struct mbuf *, sa_family_t,
78 u_int8_t, u_int8_t, struct pf_rule *, struct pf_rule *,
79 struct pf_ruleset *);
80extern pflog_packet_t *pflog_packet_ptr;
81#define PFLOG_PACKET(i,x,a,b,c,d,e,f,g) do { \
82 if (pflog_packet_ptr != NULL) \
83 pflog_packet_ptr(i,a,b,c,d,e,f,g); \
84} while (0)
85#else
86#if NPFLOG > 0
87#define PFLOG_PACKET(i,x,a,b,c,d,e,f,g) pflog_packet(i,a,b,c,d,e,f,g)
88#else
89#define PFLOG_PACKET(i,x,a,b,c,d,e,f,g) ((void)0)
90#endif /* NPFLOG > 0 */
91#endif /* __FreeBSD__ */
92#endif /* _KERNEL */
93#endif /* _NET_IF_PFLOG_H_ */
77
78typedef int pflog_packet_t(struct pfi_kif *, struct mbuf *, sa_family_t,
79 u_int8_t, u_int8_t, struct pf_rule *, struct pf_rule *,
80 struct pf_ruleset *);
81extern pflog_packet_t *pflog_packet_ptr;
82#define PFLOG_PACKET(i,x,a,b,c,d,e,f,g) do { \
83 if (pflog_packet_ptr != NULL) \
84 pflog_packet_ptr(i,a,b,c,d,e,f,g); \
85} while (0)
86#else
87#if NPFLOG > 0
88#define PFLOG_PACKET(i,x,a,b,c,d,e,f,g) pflog_packet(i,a,b,c,d,e,f,g)
89#else
90#define PFLOG_PACKET(i,x,a,b,c,d,e,f,g) ((void)0)
91#endif /* NPFLOG > 0 */
92#endif /* __FreeBSD__ */
93#endif /* _KERNEL */
94#endif /* _NET_IF_PFLOG_H_ */