module: network: add 'type` tag

This tag maps to the ifinfomsg->ifi_type member, which is set to one
of the ARPHRD_xyz values, defined in linux/if_arp.h.

There's a *ton* of them, and we can't possibly add a string mapping
for _all_ of them, so for now, set to one of:

* loopback
* ether
* wlan
* ARPHRD_NNN, where N is a number
This commit is contained in:
Daniel Eklöf 2024-04-30 10:00:46 +02:00
parent 568eb1140f
commit a5ae61b5df
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 37 additions and 3 deletions

View file

@ -18,8 +18,10 @@
* environment variable substitution in config files ([#96][96]).
* Log output now respects the [`NO_COLOR`](http://no-color.org/)
environment variable.
* network: `type` tag ([#380][380]).
[96]: https://codeberg.org/dnkl/yambar/issues/96
[380]: https://codeberg.org/dnkl/yambar/issues/380
### Changed