Deleted Added
full compact
ipfw2.c (161550) ipfw2.c (162344)
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 161550 2006-08-23 14:29:18Z dwmalone $
20 * $FreeBSD: head/sbin/ipfw/ipfw2.c 162344 2006-09-16 06:34:30Z jhay $
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>

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

1201 }
1202}
1203
1204static void
1205fill_icmp6types(ipfw_insn_icmp6 *cmd, char *av)
1206{
1207 uint8_t type;
1208
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>

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

1201 }
1202}
1203
1204static void
1205fill_icmp6types(ipfw_insn_icmp6 *cmd, char *av)
1206{
1207 uint8_t type;
1208
1209 cmd->d[0] = 0;
1209 bzero(cmd, sizeof(*cmd));
1210 while (*av) {
1211 if (*av == ',')
1212 av++;
1213 type = strtoul(av, &av, 0);
1214 if (*av != ',' && *av != '\0')
1215 errx(EX_DATAERR, "invalid ICMP6 type");
1216 /*
1217 * XXX: shouldn't this be 0xFF? I can't see any reason why

--- 4198 unchanged lines hidden ---
1210 while (*av) {
1211 if (*av == ',')
1212 av++;
1213 type = strtoul(av, &av, 0);
1214 if (*av != ',' && *av != '\0')
1215 errx(EX_DATAERR, "invalid ICMP6 type");
1216 /*
1217 * XXX: shouldn't this be 0xFF? I can't see any reason why

--- 4198 unchanged lines hidden ---