Deleted Added
full compact
ipfw2.c (134475) ipfw2.c (135036)
1/*
2 * Copyright (c) 2002-2003 Luigi Rizzo
3 * Copyright (c) 1996 Alex Nash, Paul Traina, Poul-Henning Kamp
4 * Copyright (c) 1994 Ugen J.S.Antsilevich
5 *
6 * Idea and grammar partially left from:
7 * Copyright (c) 1993 Daniel Boulet
8 *
9 * Redistribution and use in source forms, with and without modification,
10 * are permitted provided that this entire comment appears intact.
11 *
12 * Redistribution in binary form may occur without any restrictions.
13 * Obviously, it would be nice if you gave credit where credit is due
14 * but requiring it would be too onerous.
15 *
16 * This software is provided ``AS IS'' without any warranties of any kind.
17 *
18 * NEW command line interface for IP firewall facility
19 *
1/*
2 * Copyright (c) 2002-2003 Luigi Rizzo
3 * Copyright (c) 1996 Alex Nash, Paul Traina, Poul-Henning Kamp
4 * Copyright (c) 1994 Ugen J.S.Antsilevich
5 *
6 * Idea and grammar partially left from:
7 * Copyright (c) 1993 Daniel Boulet
8 *
9 * Redistribution and use in source forms, with and without modification,
10 * are permitted provided that this entire comment appears intact.
11 *
12 * Redistribution in binary form may occur without any restrictions.
13 * Obviously, it would be nice if you gave credit where credit is due
14 * but requiring it would be too onerous.
15 *
16 * This software is provided ``AS IS'' without any warranties of any kind.
17 *
18 * NEW command line interface for IP firewall facility
19 *
20 * $FreeBSD: head/sbin/ipfw/ipfw2.c 134475 2004-08-29 08:25:02Z maxim $
20 * $FreeBSD: head/sbin/ipfw/ipfw2.c 135036 2004-09-10 13:42:24Z maxim $
21 */
22
23#include <sys/param.h>
24#include <sys/mbuf.h>
25#include <sys/socket.h>
26#include <sys/sockio.h>
27#include <sys/sysctl.h>
28#include <sys/time.h>

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

1729 char **lav;
1730 u_long rnum, last;
1731 char *endptr;
1732 int seen = 0;
1733
1734 const int ocmd = do_pipe ? IP_DUMMYNET_GET : IP_FW_GET;
1735 int nalloc = 1024; /* start somewhere... */
1736
21 */
22
23#include <sys/param.h>
24#include <sys/mbuf.h>
25#include <sys/socket.h>
26#include <sys/sockio.h>
27#include <sys/sysctl.h>
28#include <sys/time.h>

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

1729 char **lav;
1730 u_long rnum, last;
1731 char *endptr;
1732 int seen = 0;
1733
1734 const int ocmd = do_pipe ? IP_DUMMYNET_GET : IP_FW_GET;
1735 int nalloc = 1024; /* start somewhere... */
1736
1737 last = 0;
1738
1737 if (test_only) {
1738 fprintf(stderr, "Testing only, list disabled\n");
1739 return;
1740 }
1741
1742 ac--;
1743 av++;
1744

--- 2393 unchanged lines hidden ---
1739 if (test_only) {
1740 fprintf(stderr, "Testing only, list disabled\n");
1741 return;
1742 }
1743
1744 ac--;
1745 av++;
1746

--- 2393 unchanged lines hidden ---