2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-21 14:49:41 +00:00

netdev: Add 'netdev' parameter to netdev_add_router().

When there is the possibility of multiple classes of netdevs,
netdev_add_router() needs to know which of these to use, so it needs a
"struct netdev *" parameter.
This commit is contained in:
Ben Pfaff
2009-07-23 12:18:14 -07:00
parent 5bfc0cd3c6
commit 0efaf4b50c
4 changed files with 6 additions and 5 deletions

View File

@@ -879,9 +879,10 @@ netdev_set_in4(struct netdev *netdev, struct in_addr addr, struct in_addr mask)
return error;
}
/* Adds 'router' as a default IP gateway. */
/* Adds 'router' as a default IP gateway for the TCP/IP stack that corresponds
* to 'netdev'. */
int
netdev_add_router(struct in_addr router)
netdev_add_router(struct netdev *netdev UNUSED, struct in_addr router)
{
struct in_addr any = { INADDR_ANY };
struct rtentry rt;