-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mac/gw.hpp: refactor MacGatewayInfo implementation
In order simplify and to make it work for "add bypass route" functionality: - remove RTA_NETMASK flag. This is only needed to get the netmask that applies to the route. For the purposes of getting the next-hop gateway and netmask of the specific interface it is not needed. Moreover, with this flag set by some reasons I got the default gateway instead of specific host route. - remove OPENVPN_NEXTADDR(6) macros. Plain assignment and explicit length adjustment is is cleaner. - remove memset, since brace initialization is enough. - define variables close to usage instead of at the top. Signed-off-by: Lev Stipakov <[email protected]>
- Loading branch information
Showing
1 changed file
with
32 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@lstipakov do you have any ideas why we could get here this error after updating to 3.10.3?