[ovs-dev] [PATCH 21/22] implement get_next_hop for NetBSD

Ed Maste emaste at freebsd.org
Wed Apr 24 16:36:03 UTC 2013


> +static int
> +netdev_bsd_get_next_hop(const struct in_addr *host, struct in_addr *next_hop,
> +                        char **netdev_name)
> +{
> +#if defined(__NetBSD__)

Acked-by: Ed Maste <emaste at freebsd.org>

This is close to being usable on FreeBSD as well, with the exception
that we don't have the RT_ADVANCE macro.  I'm happy to have this patch
go in and then look at refactoring it to work on FreeBSD later on.

It seems like there should be an opportunity to share code between
this function and route-table-bsd.c's route_table_get_name() too,
although it's probably easier to do so after getting
netdev_bsd_get_next_hop() working on FreeBSD first.



More information about the dev mailing list