aboutsummaryrefslogtreecommitdiff
path: root/lib/route-table.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-01-09 16:57:45 -0800
committerBen Pfaff <blp@nicira.com>2011-01-27 09:26:05 -0800
commitcceb11f5b12d09cc8afc87ca4fd03e941234d439 (patch)
tree9dcdb79b49856023c9f63f4595d82c4a18b37ecf /lib/route-table.c
parent18c58479a14f760fb03c2062f9a35961fc74ebb5 (diff)
netlink-socket: Add functions for joining and leaving multicast groups.
When this library was originally implemented, support for Linux 2.4 was important. The Netlink implementation in Linux only added support for joining and leaving multicast groups after a socket is bound as of Linux 2.6.14, so the library did not support it either. But the current version of Open vSwitch targets Linux 2.6.18 and over, so it's fine to add this support now, and this commit does so. This will be used more extensively in upcoming commits. Reviewed by Justin Pettit.
Diffstat (limited to 'lib/route-table.c')
-rw-r--r--lib/route-table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route-table.c b/lib/route-table.c
index e21e80c2..83a666ef 100644
--- a/lib/route-table.c
+++ b/lib/route-table.c
@@ -182,7 +182,7 @@ route_table_reset(void)
route_map_clear();
route_table_valid = true;
- error = nl_sock_create(NETLINK_ROUTE, 0, 0, 0, &rtnl_sock);
+ error = nl_sock_create(NETLINK_ROUTE, &rtnl_sock);
if (error) {
VLOG_WARN_RL(&rl, "failed to reset routing table, "
"cannot create RTNETLINK_ROUTE socket");