Date: Mon, 7 Oct 2002 23:29:50 +0300 (EEST) From: Andrey Simonenko <simon@simon.org.ua> To: freebsd-net@freebsd.org Subject: Q about sbin/ip6fw/ip6fw.c:list() Message-ID: <20021007222647.B91626-100000@lion.com.ua>
next in thread | raw e-mail | index | archive | help
Hello, Why is it not allowed to get more that 65536 ip6fw rules from the kernel in the ip6fw.c:list() function? Here is some lines from ip6fw.c: maxbytes = 65536 * sizeof *rules; while (bytes >= nalloc) { nalloc = nalloc * 2 + 200; bytes = nalloc; if ((rules = realloc(rules, bytes)) == NULL) err(EX_OSERR, "realloc"); i = getsockopt(s, IPPROTO_IPV6, IPV6_FW_GET, rules, &bytes); if ((i < 0 && errno != EINVAL) || nalloc > maxbytes) err(EX_OSERR, "getsockopt(IPV6_FW_GET)"); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021007222647.B91626-100000>