Skip to content

Commit

Permalink
When UDP multicast sockets are not created, do not reconfigure them.
Browse files Browse the repository at this point in the history
jkralik authored and Daniel Adam committed Oct 13, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent a78058b commit 1cb3b89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions port/linux/ipadapter.c
Original file line number Diff line number Diff line change
@@ -592,6 +592,9 @@ process_interface_change_event(void)
if (dev == NULL) {
continue;
}
if (dev->mcast4_sock < 0) {
continue;
}
success = oc_netsocket_add_sock_to_ipv4_mcast_group(
dev->mcast4_sock, RTA_DATA(attr), ifa->ifa_index) &&
success;
@@ -605,6 +608,9 @@ process_interface_change_event(void)
if (dev == NULL) {
continue;
}
if (dev->mcast_sock < 0) {
continue;
}
success = oc_netsocket_add_sock_to_ipv6_mcast_group(
dev->mcast_sock, ifa->ifa_index) &&
success;

0 comments on commit 1cb3b89

Please sign in to comment.