12.04.2010 10:07, Hizel Ildar пишет: > В Sun, 11 Apr 2010 11:23:59 +0400 > Alex Keda<admin_at_lissyara.su> пишет: > > >> 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_at_freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to >> "freebsd-current-unsubscribe_at_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 > _at__at_ -553,7 +553,7 _at__at_ > } > > 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_at_srv.host-food.ru:/home/obj/usr/src/sys/HOST-FOOD i386 srv1#Received on Mon Apr 12 2010 - 04:34:58 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:02 UTC