Skip to content

networking.interfaces: Provide ifconfig(8) flags, rdomain, description and groups#94

Merged
corporate-gadfly merged 1 commit intoOpenVoxProject:mainfrom
klemensn:interfaces-ifconfig
Mar 20, 2026
Merged

networking.interfaces: Provide ifconfig(8) flags, rdomain, description and groups#94
corporate-gadfly merged 1 commit intoOpenVoxProject:mainfrom
klemensn:interfaces-ifconfig

Conversation

@klemensn
Copy link
Contributor

@klemensn klemensn commented Mar 13, 2026

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
 }

@klemensn klemensn force-pushed the interfaces-ifconfig branch from 1fde987 to 026bbb6 Compare March 13, 2026 19:23
@klemensn
Copy link
Contributor Author

@buzzdeee FYI

@klemensn klemensn force-pushed the interfaces-ifconfig branch 3 times, most recently from 37503e7 to 69058b5 Compare March 13, 2026 20:19
… 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
 }
```
@klemensn klemensn force-pushed the interfaces-ifconfig branch from 69058b5 to b48cd3d Compare March 13, 2026 21:29
@klemensn klemensn changed the title networking.interfaces: Provide ifconfig(8) flags, rdomain, desription and groups networking.interfaces: Provide ifconfig(8) flags, rdomain, description and groups Mar 13, 2026
@corporate-gadfly corporate-gadfly added the enhancement New feature or request label Mar 17, 2026
@corporate-gadfly corporate-gadfly merged commit 98a7dec into OpenVoxProject:main Mar 20, 2026
25 checks passed
@corporate-gadfly
Copy link
Contributor

TY @klemensn .

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants