CVSROOT:        /cvs
Module name:    src
Changes by:     bl...@cvs.openbsd.org   2025/05/19 23:51:43

Modified files:
        sys/netinet    : in_pcb.c in_pcb.h 
        sys/netinet6   : in6.c in6.h in6_src.c in6_var.h ip6_var.h 

Log message:
Call in_pcbselsrc() and in6_pcbselsrc() with const sockaddr parameter.

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 the callstack,
also convert a bunch of other lookup functions to const.

OK kn@

Reply via email to