networking.interfaces: Provide ifconfig(8) flags, rdomain, description and groups#94
Merged
corporate-gadfly merged 1 commit intoOpenVoxProject:mainfrom Mar 20, 2026
Conversation
1fde987 to
026bbb6
Compare
Contributor
Author
|
@buzzdeee FYI |
37503e7 to
69058b5
Compare
… and groups OpenBSD, FreeBSD and macOS all show interface flags the same way. OpenBSD and FreeBSD support descriptions and groups. OpenBSD has https://man.openbsd.org/rdomain.4 as well. If these properties are not set or ifconfig does not print them, they will simply not appear. This allows OpenVox to act upon such details without shelling out to custom scripts; without either of this there is currently no way to ensure (partial) interface state. Example from OpenBSD: ``` pair2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> rdomain 46 mtu 1500 lladdr fe:e1:ba:d1:c3:a7 description: gelatod CLAT 464XLAT index 6 priority 0 llprio 3 patch: pair1 groups: pair media: Ethernet autoselect status: active inet 192.0.0.1 netmask 0xfffffff8 broadcast 192.0.0.7 ``` Result: ``` { bindings => [ { address => "192.0.0.1", netmask => "255.255.255.248", network => "192.0.0.0" } ], + description => "gelatod CLAT 464XLAT", + flags => [ + "UP", + "BROADCAST", + "RUNNING", + "SIMPLEX", + "MULTICAST" + ], + groups => [ + "pair" + ], ip => "192.0.0.1", mac => "fe:e1:ba:d1:c3:a7", mtu => 1500, netmask => "255.255.255.248", network => "192.0.0.0", + rdomain => 46 } ```
69058b5 to
b48cd3d
Compare
corporate-gadfly
approved these changes
Mar 20, 2026
Contributor
|
TY @klemensn . |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OpenBSD, FreeBSD and macOS all show interface flags the same way.
OpenBSD and FreeBSD support descriptions and groups.
OpenBSD has https://man.openbsd.org/rdomain.4 as well.
If these properties are not set or ifconfig does not print them,
they will simply not appear.
This allows OpenVox to act upon such details without shelling out to
custom scripts; without either of this there is currently no way to
ensure (partial) interface state.
Example from OpenBSD:
Result: