1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
4 #include <linux/nl80211.h>
9 #include "conf-parser.h"
10 #include "ether-addr-util.h"
13 typedef struct NetMatch
{
15 Set
*permanent_hw_addr
;
18 char **iftype
; /* udev's DEVTYPE field or ARPHRD_XXX, e.g. ether, wlan. */
19 char **kind
; /* IFLA_INFO_KIND attribute, e.g. gre, gretap, erspan. */
27 void net_match_clear(NetMatch
*match
);
28 bool net_match_is_empty(const NetMatch
*match
);
31 const NetMatch
*match
,
33 const struct hw_addr_data
*hw_addr
,
34 const struct hw_addr_data
*permanent_hw_addr
,
36 unsigned short iftype
,
39 char * const *alternative_names
,
40 enum nl80211_iftype wlan_iftype
,
42 const struct ether_addr
*bssid
);
44 CONFIG_PARSER_PROTOTYPE(config_parse_net_condition
);
45 CONFIG_PARSER_PROTOTYPE(config_parse_match_strv
);
46 CONFIG_PARSER_PROTOTYPE(config_parse_match_ifnames
);
47 CONFIG_PARSER_PROTOTYPE(config_parse_match_property
);