Deleted Added
full compact
print-pflog.c (162017) print-pflog.c (172683)
1/*
2 * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

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

16 * written permission.
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 */
21
22#ifndef lint
23static const char rcsid[] _U_ =
1/*
2 * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

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

16 * written permission.
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 */
21
22#ifndef lint
23static const char rcsid[] _U_ =
24 "@(#) $Header: /tcpdump/master/tcpdump/print-pflog.c,v 1.13.2.1 2005/07/07 01:24:38 guy Exp $ (LBL)";
24 "@(#) $Header: /tcpdump/master/tcpdump/print-pflog.c,v 1.13.2.4 2007/09/13 17:18:10 gianluca Exp $ (LBL)";
25#endif
26
27#ifdef HAVE_CONFIG_H
28#include "config.h"
29#endif
30
25#endif
26
27#ifdef HAVE_CONFIG_H
28#include "config.h"
29#endif
30
31#ifndef HAVE_NET_PFVAR_H
32#error "No pf headers available"
33#endif
34
35#include <sys/types.h>
36#ifndef WIN32
37#include <sys/socket.h>
38#endif
39#include <net/if.h>
40#include <net/pfvar.h>
41#include <net/if_pflog.h>
42
43
44
31#include <tcpdump-stdinc.h>
32
33#include <stdio.h>
34#include <pcap.h>
35
36#include "interface.h"
37#include "addrtoname.h"
45#include <tcpdump-stdinc.h>
46
47#include <stdio.h>
48#include <pcap.h>
49
50#include "interface.h"
51#include "addrtoname.h"
38#include "pf.h"
39
40static struct tok pf_reasons[] = {
41 { 0, "0(match)" },
42 { 1, "1(bad-offset)" },
43 { 2, "2(fragment)" },
44 { 3, "3(short)" },
45 { 4, "4(normalize)" },
46 { 5, "5(memory)" },
52
53static struct tok pf_reasons[] = {
54 { 0, "0(match)" },
55 { 1, "1(bad-offset)" },
56 { 2, "2(fragment)" },
57 { 3, "3(short)" },
58 { 4, "4(normalize)" },
59 { 5, "5(memory)" },
60 { 6, "6(bad-timestamp)" },
61 { 7, "7(congestion)" },
62 { 8, "8(ip-option)" },
63 { 9, "9(proto-cksum)" },
64 { 10, "10(state-mismatch)" },
65 { 11, "11(state-insert)" },
66 { 12, "12(state-limit)" },
67 { 13, "13(src-limit)" },
68 { 14, "14(synproxy)" },
47 { 0, NULL }
48};
49
50static struct tok pf_actions[] = {
51 { PF_PASS, "pass" },
52 { PF_DROP, "block" },
53 { PF_SCRUB, "scrub" },
54 { PF_NAT, "nat" },

--- 116 unchanged lines hidden ---
69 { 0, NULL }
70};
71
72static struct tok pf_actions[] = {
73 { PF_PASS, "pass" },
74 { PF_DROP, "block" },
75 { PF_SCRUB, "scrub" },
76 { PF_NAT, "nat" },

--- 116 unchanged lines hidden ---