Re: Import nd6_output_ifp routing function from FreeBSD

Robert Swindells <[email protected]> Sun, 22 Jun 2025 21:16:23 +0100
Newsgroups gmane.os.netbsd.devel.network
Message-ID <[email protected]>
[trimmed to tech-net@]

Emmanuel Nyarko <[email protected]> wrote:
> On 22 Jun 2025, at 3:12 PM, Robert Swindells <[email protected]> wrote:
> 
>> Emmanuel Nyarko <[email protected]> wrote:
>>> 
>>> I am currently working on policy based routing (based on outgoing interface)
>>> 
>>> there’ a previously written code for ipv6 which I’ve taken from Jonathan
>>> A. Kollasch long time ago.  and he used nd6_output function which
>>> appears to be removed from netbsd.
>> 
>> [snip]
>> 
>>> freeBSD now uses nd6_output_ifp for a similar job. and i want to import
>>> it to netbsd so we can use it for that.
>>> 
>>> https://github.com/freebsd/freebsd-src/blob/main/sys/netinet6/nd6.c#L2184
>> 
>> Have you looked at what parts of IPv6 processing are now done in dhcpcd?
>
> I don’t have that idea yet. But, I’m ready to do the work. You mean, I
> should check how efficient or the limit to which dhcpd can assign IPv6
> addresses to neighboring hosts ?

If you look at the change history of nd6.c a large amount of code was
moved to dhcpcd in userland.

I am suggesting that you should look at what was done before thinking
about adding stuff back to nd6.c.