-
Notifications
You must be signed in to change notification settings - Fork 450
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
FreeBSD: Skip inet6 addresses matching ::1 #1838
base: main
Are you sure you want to change the base?
Conversation
@feld please add DCO |
@@ -68,6 +68,7 @@ | |||
end | |||
end | |||
if line =~ /\s+inet6 ([a-f0-9\:]+)%?(\w*)\s+prefixlen\s+(\d+)\s*\w*\s*([\da-fx]*)/ | |||
next if $1 == "::1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is the right approach. Is ::1
the only inet6
line in your ifconfig
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I have fe80 addresses on all the interfaces and those are properly excluded.
Sometimes ::1 is on lo1 and not lo0, but it should always see my inet6 addresses starting with 2600 first and it doesn't pick them up. It always takes the ::1 as the default address for some strange reason.
On a very vanilla out-of-the-box FreeBSD install with IPv6 enabled Chef will pick up ::1 as the IPv6 address. This is the only way I found to fix it.
9ea4383
to
78e7f34
Compare
Signed-off-by: Mark Felder <feld@feld.me>
78e7f34
to
cfadfcb
Compare
Quality Gate passedIssues Measures |
This adds unittests for the FreeBSD network plugin. It also fixes various issues: * It now running on modern freebsd which has extra columns in netstat output. * It now properly reports encapuslation, MTU, and metric It also includes a test case with `::1` on `lo1` to start building out support for sorting out chef#1838 Signed-off-by: Phil Dibowitz <phil@ipom.com>
This adds unittests for the FreeBSD network plugin. It also fixes various issues: * It now running on modern freebsd which has extra columns in netstat output. * It now properly reports encapuslation, MTU, and metric It also includes a test case with `::1` on `lo1` to start building out support for sorting out chef#1838 Signed-off-by: Phil Dibowitz <phil@ipom.com>
This adds unittests for the FreeBSD network plugin. It also fixes various issues: * It now running on modern freebsd which has extra columns in netstat output. * It now properly reports encapuslation, MTU, and metric It also includes a test case with `::1` on `lo1` to start building out support for sorting out chef#1838 Signed-off-by: Phil Dibowitz <phil@ipom.com>
After writing #1841 I THINK I know what the problem is here. FreeBSD reports no scope for global addresses. Further, it uses scopeIDs, not scopes, so the sorting that happens here doesn't work at all. So the right fix here is to modify this code to:
|
This adds unittests for the FreeBSD network plugin. It also fixes various issues: * It now running on modern freebsd which has extra columns in netstat output. * It now properly reports encapuslation, MTU, and metric It also includes a test case with `::1` on `lo1` to start building out support for sorting out chef#1838 Signed-off-by: Phil Dibowitz <phil@ipom.com>
This adds unittests for the FreeBSD network plugin. It also fixes various issues: * It now running on modern freebsd which has extra columns in netstat output. * It now properly reports encapuslation, MTU, and metric It also includes a test case with `::1` on `lo1` to start building out support for sorting out chef#1838 Signed-off-by: Phil Dibowitz <phil@ipom.com>
This adds unittests for the FreeBSD network plugin. It also fixes various issues: * It now running on modern freebsd which has extra columns in netstat output. * It now properly reports encapuslation, MTU, and metric It also includes a test case with `::1` on `lo1` to start building out support for sorting out chef#1838 Signed-off-by: Phil Dibowitz <phil@ipom.com>
@feld - ping? |
Fixes #1835