Deleted Added
full compact
if_pflog.h (147256) if_pflog.h (155337)
1/* $FreeBSD: head/sys/contrib/pf/net/if_pflog.h 147256 2005-06-10 16:49:24Z brooks $ */
1/* $FreeBSD: head/sys/contrib/pf/net/if_pflog.h 155337 2006-02-05 17:17:32Z mlaier $ */
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

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

65 u_short reason;
66 u_short action;
67 u_short dir;
68};
69#define OLD_PFLOG_HDRLEN sizeof(struct old_pfloghdr)
70
71#ifdef _KERNEL
72
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

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

65 u_short reason;
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>
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
73#if NPFLOG > 0
74#define PFLOG_PACKET(i,x,a,b,c,d,e,f,g) pflog_packet(i,a,b,c,d,e,f,g)
75#else
76#define PFLOG_PACKET(i,x,a,b,c,d,e,f,g) ((void)0)
77#endif /* NPFLOG > 0 */
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__ */
78#endif /* _KERNEL */
79#endif /* _NET_IF_PFLOG_H_ */
92#endif /* _KERNEL */
93#endif /* _NET_IF_PFLOG_H_ */