network,udev/net: add Kind= settings in [Match] section

This may be useful for writing .network or .link files matching with
virtual interfaces.

Closes #22541.
This commit is contained in:
Yu Watanabe
2022-02-17 23:10:26 +09:00
parent 430f07f4f8
commit 65022cd7ab
14 changed files with 53 additions and 3 deletions
+1
View File
@@ -1169,6 +1169,7 @@ static int link_get_network(Link *link, Network **ret) {
&link->permanent_hw_addr,
link->driver,
link->iftype,
link->kind,
link->ifname,
link->alternative_names,
link->wlan_iftype,
+1
View File
@@ -52,6 +52,7 @@ Match.PermanentMACAddress, config_parse_hw_addrs,
Match.Path, config_parse_match_strv, 0, offsetof(Network, match.path)
Match.Driver, config_parse_match_strv, 0, offsetof(Network, match.driver)
Match.Type, config_parse_match_strv, 0, offsetof(Network, match.iftype)
Match.Kind, config_parse_match_strv, 0, offsetof(Network, match.kind)
Match.WLANInterfaceType, config_parse_match_strv, 0, offsetof(Network, match.wlan_iftype)
Match.SSID, config_parse_match_strv, 0, offsetof(Network, match.ssid)
Match.BSSID, config_parse_ether_addrs, 0, offsetof(Network, match.bssid)