Index | Thread | Search

From:
Klemens Nanni <kn@openbsd.org>
Subject:
Re: in_pcbselsrc() and in6_pcbselsrc() const sockaddr parameter
To:
Alexander Bluhm <bluhm@openbsd.org>, tech@openbsd.org
Date:
Tue, 20 May 2025 05:03:18 +0000

Download raw body.

Thread
20.05.2025 07:27, Alexander Bluhm пишет:
> Functions in_pcbselsrc() and in6_pcbselsrc() use the destination
> sockaddr to determine a suitable source address.  As the destination
> is only used for lookup, it should never be modified.  Use const
> to let the compiler verify that.  On the way down on the callstack,
> also convert the parameter a bunch of other lookup functions to
> const.

OK kn