@@ -22,6 +22,7 @@ void net_match_clear(NetMatch *match) {
2222 match -> path = strv_free (match -> path );
2323 match -> driver = strv_free (match -> driver );
2424 match -> iftype = strv_free (match -> iftype );
25+ match -> kind = strv_free (match -> kind );
2526 match -> ifname = strv_free (match -> ifname );
2627 match -> property = strv_free (match -> property );
2728 match -> wlan_iftype = strv_free (match -> wlan_iftype );
@@ -38,6 +39,7 @@ bool net_match_is_empty(const NetMatch *match) {
3839 strv_isempty (match -> path ) &&
3940 strv_isempty (match -> driver ) &&
4041 strv_isempty (match -> iftype ) &&
42+ strv_isempty (match -> kind ) &&
4143 strv_isempty (match -> ifname ) &&
4244 strv_isempty (match -> property ) &&
4345 strv_isempty (match -> wlan_iftype ) &&
@@ -126,6 +128,7 @@ int net_match_config(
126128 const struct hw_addr_data * permanent_hw_addr ,
127129 const char * driver ,
128130 unsigned short iftype ,
131+ const char * kind ,
129132 const char * ifname ,
130133 char * const * alternative_names ,
131134 enum nl80211_iftype wlan_iftype ,
@@ -160,6 +163,9 @@ int net_match_config(
160163 if (!net_condition_test_strv (match -> iftype , iftype_str ))
161164 return false;
162165
166+ if (!net_condition_test_strv (match -> kind , kind ))
167+ return false;
168+
163169 if (!net_condition_test_ifname (match -> ifname , ifname , alternative_names ))
164170 return false;
165171
0 commit comments