Date: Sat, 27 Sep 2008 23:40:57 +0800 From: Ganbold <ganbold@micom.mng.net> To: Roman Kurakin <rik@inse.ru> Cc: Roman Kurakin <rik@FreeBSD.org>, cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/ipfw ipfw2.c Message-ID: <48DE5409.6060704@micom.mng.net> In-Reply-To: <48DE4C09.5050903@localhost.inse.ru> References: <200809271430.m8REUkDV034473@repoman.freebsd.org> <48DE49E8.2060602@micom.mng.net> <48DE4C09.5050903@localhost.inse.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Roman, Roman Kurakin wrote: > Ganbold wrote: >> Roman Kurakin wrote: >>> rik 2008-09-27 14:30:34 UTC >>> >>> FreeBSD src repository >>> >>> Modified files: >>> sbin/ipfw ipfw2.c Log: >>> SVN rev 183407 on 2008-09-27 14:30:34Z by rik >>> Add keyword all in addtion to the table number for the 'list' >>> and the >>> 'flush' actions on tables. Part of PR: 127058. >>> >> >> Thanks a lot, Roman. > With the last one just committed the all parts of PR should now be done. > So please test all the parts (also 'table all flush' as a bonus) and I > will close > the PR. ... cc -O2 -pipe -fstack-protector -Wno-pointer-sign -c /usr/src/sbin/ipfw/ipfw2.c /usr/src/sbin/ipfw/ipfw2.c: In function 'table_handler': /usr/src/sbin/ipfw/ipfw2.c:5969: error: too few arguments to function 'table_list' *** Error code 1 Stop in /usr/src/sbin/ipfw. You forgot to add is_all as argument to table_list(): ... } else if (_substrcmp(*av, "list") == 0) { a = is_all ? tables_max : (ent.tbl + 1); do { table_list(ent, is_all); ^^^^ } while (++ent.tbl < a); } else ... Corrected version works, lists all tables' IP and flushes all. Will check man page shortly. thanks, Ganbold > > rik >> Ganbold >> >>> PR: 127058 (based on) >>> MFC after: 1 month >>> Revision Changes Path >>> 1.129 +29 -8 src/sbin/ipfw/ipfw2.c >>> _______________________________________________ >>> cvs-all@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/cvs-all >>> To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" >>> >>> >>> >>> >> > > _______________________________________________ > cvs-all@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/cvs-all > To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" > > > -- A master programmer passed a novice programmer one day. The master noted the novice's preoccupation with a hand-held computer game. "Excuse me", he said, "may I examine it?" The novice bolted to attention and handed the device to the master. "I see that the device claims to have three levels of play: Easy, Medium, and Hard", said the master. "Yet every such device has another level of play, where the device seeks not to conquer the human, nor to be conquered by the human." "Pray, great master," implored the novice, "how does one find this mysterious setting?" The master dropped the device to the ground and crushed it under foot. And suddenly the novice was enlightened. -- Geoffrey James, "The Tao of Programming"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48DE5409.6060704>