Deleted Added
full compact
ipfw2.c (174713) ipfw2.c (175511)
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 174713 2007-12-17 10:25:56Z oleg $
20 * $FreeBSD: head/sbin/ipfw/ipfw2.c 175511 2008-01-20 08:31:35Z 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>

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

3989 if (ac == 0)
3990 errx(EX_DATAERR, "missing option");
3991 if (!inet_aton(av[0], &(n->ip)))
3992 errx(EX_DATAERR, "bad ip address ``%s''",
3993 av[0]);
3994 ac--; av++;
3995 break;
3996 case TOK_IF:
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>

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

3989 if (ac == 0)
3990 errx(EX_DATAERR, "missing option");
3991 if (!inet_aton(av[0], &(n->ip)))
3992 errx(EX_DATAERR, "bad ip address ``%s''",
3993 av[0]);
3994 ac--; av++;
3995 break;
3996 case TOK_IF:
3997 if (ac == 0)
3998 errx(EX_DATAERR, "missing option");
3997 set_addr_dynamic(av[0], n);
3998 ac--; av++;
3999 break;
4000 case TOK_ALOG:
4001 n->mode |= PKT_ALIAS_LOG;
4002 break;
4003 case TOK_DENY_INC:
4004 n->mode |= PKT_ALIAS_DENY_INCOMING;

--- 2409 unchanged lines hidden ---
3999 set_addr_dynamic(av[0], n);
4000 ac--; av++;
4001 break;
4002 case TOK_ALOG:
4003 n->mode |= PKT_ALIAS_LOG;
4004 break;
4005 case TOK_DENY_INC:
4006 n->mode |= PKT_ALIAS_DENY_INCOMING;

--- 2409 unchanged lines hidden ---