A bit weird code

Roman Bogorodskiy novel at FreeBSD.org
Tue Sep 19 01:48:59 PDT 2006


  Andrey V. Elsukov wrote:

> 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 :)

Yeah, my fault, it's actually on line 4829, rev. 1.98.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ipfw/attachments/20060919/d5c314c2/attachment.pgp


More information about the freebsd-ipfw mailing list