-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IPv6 support for ChooseHostInterface (part 3 of 3)
This is the final commit, which is based on top of PR 46044 and 46138, and provides support for Ipv6 for the ChooseHostInterface() and ChooseBindAddress() functions. The commit includes the following... - Parses default routes from /proc/net/ipv6_route file. - Collected IPv6 routes are added to the Ipv4 routes collected. - ChooseHostInteface semantics remain the same: * If no Ipv4 route file, the system interfaces will be checked for a global IP. * Otherwise, default routes will be used to find a global IP. * If there is a failure getting IP from default routes, an error is reported. * Although IPv6 routes are also used, IPv4 routes have precedence. - Any failure getting IPv6 routes is ignored, and will proceed with IPv4 routes. - Scans all IPv4 routes looking for interfaces with global IP, before looking at IPv6 routes. - Increased code coverage to 90.2%, covering all new and modified code (except for the top level API functions, which would need to be checked with integration/e2e tests. This would complete IPv6 support in this area of the code. Updated to rebased for changes from 46138/46044, and based on review comments. Kubernetes-commit: 3d8f96f881eeaa814d2b10a99c619d08ff60e7df
- Loading branch information
1 parent
101ce26
commit 45c4951
Showing
2 changed files
with
364 additions
and
73 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
Oops, something went wrong.