main.c (223661) | main.c (227489) |
---|---|
1/* 2 * Copyright (c) 2002-2003,2010 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 * Command line interface for IP firewall facility 19 * | 1/* 2 * Copyright (c) 2002-2003,2010 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 * Command line interface for IP firewall facility 19 * |
20 * $FreeBSD: head/sbin/ipfw/main.c 223661 2011-06-29 06:45:44Z ae $ | 20 * $FreeBSD: head/sbin/ipfw/main.c 227489 2011-11-13 17:06:33Z eadler $ |
21 */ 22 23#include <sys/wait.h> 24#include <ctype.h> 25#include <err.h> 26#include <errno.h> 27#include <signal.h> 28#include <stdio.h> --- 53 unchanged lines hidden (view full) --- 82/* 83 * Called with the arguments, including program name because getopt 84 * wants it to be present. 85 * Returns 0 if successful, 1 if empty command, errx() in case of errors. 86 * First thing we do is process parameters creating an argv[] array 87 * which includes the program name and a NULL entry at the end. 88 * If we are called with a single string, we split it on whitespace. 89 * Also, arguments with a trailing ',' are joined to the next one. | 21 */ 22 23#include <sys/wait.h> 24#include <ctype.h> 25#include <err.h> 26#include <errno.h> 27#include <signal.h> 28#include <stdio.h> --- 53 unchanged lines hidden (view full) --- 82/* 83 * Called with the arguments, including program name because getopt 84 * wants it to be present. 85 * Returns 0 if successful, 1 if empty command, errx() in case of errors. 86 * First thing we do is process parameters creating an argv[] array 87 * which includes the program name and a NULL entry at the end. 88 * If we are called with a single string, we split it on whitespace. 89 * Also, arguments with a trailing ',' are joined to the next one. |
90 * The pointers (av[]) and data are in a a single chunk of memory. | 90 * The pointers (av[]) and data are in a single chunk of memory. |
91 * av[0] points to the original program name, all other entries 92 * point into the allocated chunk. 93 */ 94static int 95ipfw_main(int oldac, char **oldav) 96{ 97 int ch, ac; 98 const char *errstr; --- 525 unchanged lines hidden --- | 91 * av[0] points to the original program name, all other entries 92 * point into the allocated chunk. 93 */ 94static int 95ipfw_main(int oldac, char **oldav) 96{ 97 int ch, ac; 98 const char *errstr; --- 525 unchanged lines hidden --- |