Re: nd6: Constify sockaddr pointer arguments in nd6_*() functions

2022-08-09 Thread Claudio Jeker
On Tue, Aug 09, 2022 at 08:42:37AM +, Klemens Nanni wrote: > All of them are passed to inspect/copy out fields, none of the functions > writes to the struct. > > This makes it easier to argue about code (in MP context). > > For this to work, ifa_ifwithaddr(), ifa_ifwithdstaddr() and > ifaof_i

nd6: Constify sockaddr pointer arguments in nd6_*() functions

2022-08-09 Thread Klemens Nanni
All of them are passed to inspect/copy out fields, none of the functions writes to the struct. This makes it easier to argue about code (in MP context). For this to work, ifa_ifwithaddr(), ifa_ifwithdstaddr() and ifaof_ifpforaddr() need const arguments as well (matching the behaviour). Expand th