From owner-freebsd-hackers Thu Dec 4 16:44:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA20004 for hackers-outgoing; Thu, 4 Dec 1997 16:44:18 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from per.plex.nl (SPARCserver.plex.nl [193.67.154.10]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id QAA19978 for ; Thu, 4 Dec 1997 16:44:11 -0800 (PST) (envelope-from jbackus@plex.nl) Received: from jos.mp-c.com (isdn-11q.plex.nl [194.229.212.58]) by per.plex.nl (SMI-8.6/SMI-SVR4) id BAA18883; Fri, 5 Dec 1997 01:35:51 +0100 X-Disclaimer: Plex is a public access Internet provider Received: (qmail 2068 invoked by uid 1000); 5 Dec 1997 00:36:43 -0000 Message-ID: <19971205003643.2067.qmail@jos.mp-c.com> To: freebsd-hackers@freebsd.org Reply-To: jbackus@plex.nl Subject: Teeny-weeny /usr/src/sbin/ipfw/ipfw.c patch Date: Fri, 05 Dec 1997 01:36:43 +0100 From: Jos Backus Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk *** ipfw.c.dist Fri Dec 5 01:29:49 1997 --- ipfw.c Fri Dec 5 01:30:20 1997 *************** *** 1197,1202 **** --- 1197,1203 ---- while (fgets(buf, BUFSIZ, f)) { lineno++; + if (buf[0]=='#'||buf[0]=='\n') continue; sprintf(linename, "Line %d", lineno); args[0] = linename; This allows comments/empty lines in a firewall rule file (when using the ``ipfw rulefile'' syntax), which seems pretty handy (at least to me -- documenting rules and all that). If this is deemed a worthwhile enhancement, maybe one of the committers could do the honors? Thanks! Groetjes, -- Jos Backus _/ _/_/_/ "Modularity is not a hack." _/ _/ _/ -- D. J. Bernstein _/ _/_/_/ _/ _/ _/ _/ jbackus@plex.nl _/_/ _/_/_/ #include