Skip to content

Conversation

@moubctez
Copy link

@moubctez moubctez commented Dec 1, 2025

Add support for NetBSD.
This issue #4127 is still open for 3 years, so let's get it done.

Note: internal/aghnet/net_netbsd.go is identical internal/aghnet/net_freebsd.go.

Copy link

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 To request another review, post a new comment with "/windsurf-review".

Comment on lines +54 to +55
default:
return nil, false, s.Err()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the rcConfStaticConfig method, when a valid static IP configuration is found in the default case, it returns nil, false, s.Err(). This will stop the file walking but doesn't indicate that a static IP was found.

The function should return a value indicating success (like true) as the first return parameter when a static IP is found. Otherwise, the ifaceHasStaticIP function will always return false for the ok parameter, even when a static IP exists.

Suggested change
default:
return nil, false, s.Err()
default:
return []string{"static IP found"}, false, nil

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I mentioned, this is exactly the same code as in net_freebsd.go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant