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

2022-08-05 Thread Alexander Bluhm
On Fri, Aug 05, 2022 at 07:10:24AM +, 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) and syncs ND6 code > with NetBSD and FreeBSD. > > Builds and runs fine on

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

2022-08-05 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) and syncs ND6 code with NetBSD and FreeBSD. Builds and runs fine on sparc64. Feedback? OK? diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c