Deleted Added
sdiff udiff text old ( 162017 ) new ( 172683 )
full compact
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)";
25#endif
26
27#ifdef HAVE_CONFIG_H
28#include "config.h"
29#endif
30
31#include <tcpdump-stdinc.h>
32
33#include <stdio.h>
34#include <pcap.h>
35
36#include "interface.h"
37#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)" },
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 ---