]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Start splitting the monster file in smaller blocks.
authorLuigi Rizzo <luigi@FreeBSD.org>
Tue, 27 Jan 2009 10:18:55 +0000 (10:18 +0000)
committerLuigi Rizzo <luigi@FreeBSD.org>
Tue, 27 Jan 2009 10:18:55 +0000 (10:18 +0000)
commit3c0c87177716f56eed122fd5328f6c2dc5be875d
treea1a40a84f3213075ec4e957b2dfc8b2f1ee5a02e
parent0db1aa0bcb91c0857ff8690724b3e9a3a2a4bd99
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.
sbin/ipfw/Makefile
sbin/ipfw/ipfw2.c
sbin/ipfw/ipfw2.h [new file with mode: 0644]
sbin/ipfw/main.c [new file with mode: 0644]