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: add multicast_iface for IPv6 multicast #51

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

maximilianfridrich
Copy link
Contributor

@maximilianfridrich
Copy link
Contributor Author

@sreimers Do you have an idea how this issue could be resolved? It looks like on MacOS there is now a LIST_FOREACH macro defined in /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/sys/queue.h:499:9. This will cause issues in BareSIP and re too.

@sreimers
Copy link
Member

sreimers commented Jul 2, 2024

This is an old macro, we simply undef here for example before loading re_list.h/re.h

https://github.com/baresip/re/blob/f3b5979d6ad78585b7f6bfd64a78449373ea6330/src/main/main.c#L31-L37

You can try to load #include <net/if.h> before re.h include.

@maximilianfridrich maximilianfridrich force-pushed the mcast_iface branch 2 times, most recently from 3dbd7db to 0df62d7 Compare July 2, 2024 08:27
@maximilianfridrich
Copy link
Contributor Author

Thank you very much for the quick response! That worked!

unsigned int if_index;
if_index = if_nametoindex(mccfg.iface);
if (!if_index) {
warning("Can not find interface %s.\n", &mccfg.iface);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"multicast: could not find interface %s.\n"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@cspiel1 cspiel1 merged commit 5ff0759 into baresip:main Jul 2, 2024
6 checks passed
@maximilianfridrich maximilianfridrich deleted the mcast_iface branch July 3, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants