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:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user