mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
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.
This commit is contained in:
@@ -446,7 +446,7 @@ netdev_linux_init(void)
|
||||
|
||||
/* Create rtnetlink socket. */
|
||||
if (!status) {
|
||||
status = nl_sock_create(NETLINK_ROUTE, 0, 0, 0, &rtnl_sock);
|
||||
status = nl_sock_create(NETLINK_ROUTE, &rtnl_sock);
|
||||
if (status) {
|
||||
VLOG_ERR_RL(&rl, "failed to create rtnetlink socket: %s",
|
||||
strerror(status));
|
||||
|
Reference in New Issue
Block a user