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

[WIP] Linux: set broadcast flag by default for ipvlan interfaces. #33

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
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
Prev Previous commit
Linux: fix sign-conversion compiler warning.
ido committed Apr 25, 2021
commit 4b97e2da9e76c2efdc45e08b07f534681dc4d195
5 changes: 2 additions & 3 deletions src/if-linux.c
Original file line number Diff line number Diff line change
@@ -338,10 +338,9 @@ if_cmp_driver(struct interface *ifp, const char *driver)
logerr("%s: if_get_driver ifname=%s", __func__, ifp->name);
} else if (n == 0) {
logerr("%s: driver name empty ifname=%s", __func__, ifp->name);
} else if (n > 0) {
if (strncmp(ifdriver, driver, n) == 0)
return true;
}
if ((n >= 0) && (strncmp(ifdriver, driver, (size_t)n) == 0))
return true;
return false;
}