Date: Tue, 19 Sep 2006 08:17:49 +0400 From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: Roman Bogorodskiy <novel@FreeBSD.org> Cc: freebsd-ipfw@freebsd.org Subject: Re: A bit weird code Message-ID: <450F6F6D.6020105@yandex.ru> In-Reply-To: <20060918125848.GB93854@novel.fannet.ru> References: <20060918125848.GB93854@novel.fannet.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Roman Bogorodskiy wrote: > I was reading ipfw sources and spotted such line (sbin/ipfw/ipfw2.c, > line 4871): > > err(EX_UNAVAILABLE, "getsockopt(%s)", "IP_FW_ADD"); > > And it's there since 1.1 revision of this file. I wonder it has some > sacred meaning or just a typo. I don't see this code at this line :) If you mean this code: if (do_cmd(IP_FW_ADD, rule, (uintptr_t)&i) == -1) err(EX_UNAVAILABLE, "getsockopt(%s)", "IP_FW_ADD"); I think this is "copy&paste" bug :) -- WBR, Andrey V. Elsukov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?450F6F6D.6020105>