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

No router advertisements on tunnel interfaces #94

Merged
merged 1 commit into from Jun 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions device-common.c
Expand Up @@ -45,11 +45,15 @@ int check_device(int sock, struct Interface *iface)
dlog(LOG_ERR, 4, "%s is running", iface->props.name);
}

if (!iface->UnicastOnly && !(ifr.ifr_flags & IFF_MULTICAST)) {
flog(LOG_INFO, "%s does not support multicast, forcing UnicastOnly", iface->props.name);
if (!iface->UnicastOnly &&
!(ifr.ifr_flags & (IFF_MULTICAST | IFF_POINTOPOINT))) {
flog(LOG_INFO,
"%s does not support multicast or point-to-point, forcing UnicastOnly",
iface->props.name);
iface->UnicastOnly = 1;
} else {
dlog(LOG_ERR, 4, "%s supports multicast", iface->props.name);
dlog(LOG_ERR, 4, "%s supports multicast or is point-to-point",
iface->props.name);
}

return 0;
Expand Down