From owner-cvs-src-old@FreeBSD.ORG Tue Jan 27 10:18:58 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1168C106566C for ; Tue, 27 Jan 2009 10:18:58 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id F2CE88FC13 for ; Tue, 27 Jan 2009 10:18:57 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n0RAIvW6091463 for ; Tue, 27 Jan 2009 10:18:57 GMT (envelope-from luigi@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0RAIvRT091462 for cvs-src-old@freebsd.org; Tue, 27 Jan 2009 10:18:57 GMT (envelope-from luigi@repoman.freebsd.org) Message-Id: <200901271018.n0RAIvRT091462@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to luigi@repoman.freebsd.org using -f From: Luigi Rizzo Date: Tue, 27 Jan 2009 10:18:55 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/ipfw Makefile ipfw2.c ipfw2.h main.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2009 10:18:58 -0000 luigi 2009-01-27 10:18:55 UTC FreeBSD src repository Modified files: sbin/ipfw Makefile ipfw2.c Added files: sbin/ipfw ipfw2.h main.c Log: SVN rev 187767 on 2009-01-27 10:18:55Z by luigi Start splitting the monster file in smaller blocks. In this episode: - introduce a common header with a minimal set of common definitions; - bring the main() function and options parser in main.c - rename the main functions with an ipfw_ prefix No code changes except for the introduction of a global variable, resvd_set_number, which stores the RESVD_SET value from ip_fw.h and is used to remove the dependency of main.c from ip_fw.h (and the subtree of dependencies) for just a single constant. Revision Changes Path 1.16 +1 -1 src/sbin/ipfw/Makefile 1.141 +36 -588 src/sbin/ipfw/ipfw2.c 1.1 +105 -0 src/sbin/ipfw/ipfw2.h (new) 1.1 +539 -0 src/sbin/ipfw/main.c (new)