From owner-freebsd-current@FreeBSD.ORG Mon Apr 12 06:34:58 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DFBA1065670 for ; Mon, 12 Apr 2010 06:34:58 +0000 (UTC) (envelope-from admin@lissyara.su) Received: from hosting.lissyara.su (hosting.lissyara.su [77.221.149.162]) by mx1.freebsd.org (Postfix) with ESMTP id 32F968FC1B for ; Mon, 12 Apr 2010 06:34:57 +0000 (UTC) Received: from [195.93.240.104] (port=63460 helo=lissyara.moskb.local) by hosting.lissyara.su with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1O1DEV-000KGt-AB for freebsd-current@freebsd.org; Mon, 12 Apr 2010 10:34:55 +0400 Message-ID: <4BC2BF0F.8090108@lissyara.su> Date: Mon, 12 Apr 2010 10:34:55 +0400 From: Alex Keda User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; ru-RU; rv:1.8.1.23) Gecko/20091202 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <4BC1790F.1020205@lissyara.su> <20100412100756.1ef3af73@hzwork.vyborg.ru> In-Reply-To: <20100412100756.1ef3af73@hzwork.vyborg.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-White-List: YES X-Spam-Description: if spam count > 60 - this is spam X-Spam-Count: 0 X-Descriptions: powered by www.lissyara.su X-Bounce-ID: hosting.lissyara.su Subject: Re: ipfw bug on i386 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 06:34:58 -0000 12.04.2010 10:07, Hizel Ildar пишет: > В Sun, 11 Apr 2010 11:23:59 +0400 > Alex Keda пишет: > > >> srv5# more /tmp/a.sh >> table="24" >> ipfw table $table flush >> for octet3 in `jot - 1 60` >> do >> for octet4 in `jot - 1 254` >> do >> echo "table $table add 192.168.$octet3.$octet4">> /tmp/$$.txt >> done >> done >> ipfw /tmp/$$.txt >> rm -f /tmp/$$.txt >> >> effect: >> >> srv5# sh /tmp/a.sh >> Abort trap (core dumped) >> srv5# >> srv5# ll ipfw.core >> -rw------- 1 root wheel - 1,9M 11 апр 11:22 ipfw.core >> srv5# >> >> Tested on 8,9 i386 - core dump, amd64 - all OK >> 7 - all OK >> >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to >> "freebsd-current-unsubscribe@freebsd.org" >> >> > Hey! I'm fix this bug :D > > patch: > > foo# diff -ruN main.c~ main.c > --- main.c~ 2010-03-04 19:54:56.000000000 +0300 > +++ main.c 2010-04-12 09:37:21.000000000 +0400 > @@ -553,7 +553,7 @@ > } > > while (fgets(buf, BUFSIZ, f)) { /* read commands */ > - char linename[10]; > + char linename[11]; > char *args[2]; > > lineno++; > so, it limit 100k addresses in table? with 7-STABLE I have more than 100k IP and all work correct srv1# ipfw table 25 list | wc -l 104294 srv1# uname -a FreeBSD srv1.host-food.ru 7.2-STABLE FreeBSD 7.2-STABLE #0: Sun Oct 4 01:38:34 MSD 2009 lissyara@srv.host-food.ru:/home/obj/usr/src/sys/HOST-FOOD i386 srv1#