Re: SO_REUSEADDR porting issues on kFreeBSD targets
Jakub Wilk <jwilk@debian.org> writes:
> * Russ Allbery <rra@debian.org>, 2016-09-05, 10:19:
>>(Please cc me on replies; I'm not subscribed to the list.)
> Done!
>> is_int(0, getsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &flag, &flaglen),
>> "Getting SO_REUSEADDR works");
>> is_int(1, flag, "...and it is set");
> The returned option value should be non-zero, but I don't think you can
> assume it's exactly 1.
>> Is there something weird about how SO_REUSEADDR works on kFreeBSD hosts?
> Apparently the returned option value for enabled boolean options is equal
> to the option name (i.e. SO_REUSEADDR == 4 in this case) on (k)FreeBSD.
Ah! Thank you. Will fix in the next release, which hopefully won't be
too much longer.
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: