Eliminate some unused variables.
[obnox/wireshark/wip.git] / packet-pflog.h
1 /* packet-pflog.h
2  *
3  * $Id: packet-pflog.h,v 1.3 2002/02/05 00:43:59 guy Exp $
4  *
5  * Copyright 2001 Mike Frantzen
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
10  * are met:
11  *
12  *    - Redistributions of source code must retain the above copyright
13  *      notice, this list of conditions and the following disclaimer.
14  *      with the distribution.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
19  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
20  * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27  * POSSIBILITY OF SUCH DAMAGE.
28  */
29
30 #ifndef __PACKET_PFLOG_H__
31 #define __PACKET_PFLOG_H__
32
33 /* The header in OpenBSD pflog files. */
34
35 struct pfloghdr {
36   guint32       af;
37   char          ifname[16];
38   gint16        rnr;
39   guint16       reason;
40   guint16       action;
41   guint16       dir;
42 };
43 #define PFLOG_HDRLEN    sizeof(struct pfloghdr)
44
45 /* Actions */
46 #define PF_PASS  0
47 #define PF_DROP  1
48 #define PF_SCRUB 2
49
50 /* Directions */
51 #define PF_IN  0
52 #define PF_OUT 1
53
54 /* BSDisms */
55 #ifndef NTOHL
56 # define NTOHL(x)       x = ntohl(x)
57 #endif
58 #ifndef NTOHS
59 # define NTOHS(x)       x = ntohs(x)
60 #endif
61 #ifndef HTONL
62 # define HTONL(x)       x = htonl(x)
63 #endif
64 #ifndef HTONS
65 # define HTONS(x)       x = htons(x)
66 #endif
67
68 # define BSD_PF_INET    2
69 # define BSD_PF_INET6   24
70
71 #endif /* __PACKET_PFLOG_H__ */