Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multicast: fix receiver for IPv6 #50

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/multicast/multicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ static int module_read_config(void)
err = conf_apply(conf_cur(), "multicast_listener",
module_read_config_handler, &prio);
if (err)
warning("Could not parse multicast config from file");
warning("Could not parse multicast config from file\n");

return err;
}
Expand Down
7 changes: 6 additions & 1 deletion modules/multicast/receiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,12 @@ int mcreceiver_alloc(struct sa *addr, uint8_t prio)
goto out;
}

if (IN_MULTICAST(sa_in(&mcreceiver->addr))) {
if (IN_MULTICAST(sa_in(&mcreceiver->addr))
#ifdef HAVE_INET6
|| IN6_IS_ADDR_MULTICAST(&mcreceiver->addr.u.in6.sin6_addr)) {
#else
) {
#endif
err = udp_multicast_join((struct udp_sock *)
mcreceiver->rtp, &mcreceiver->addr);
if (err) {
Expand Down
Loading