]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/net-condition.h
Merge pull request #21517 from yuwata/network-long-hw-addr
[thirdparty/systemd.git] / src / shared / net-condition.h
CommitLineData
cca2da15 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
7e19cc54
YW
2#pragma once
3
4#include <linux/nl80211.h>
5#include <stdbool.h>
6
7#include "sd-device.h"
8
9#include "conf-parser.h"
10#include "ether-addr-util.h"
11#include "set.h"
12
5722fb89 13typedef struct NetMatch {
52135071
YW
14 Set *hw_addr;
15 Set *permanent_hw_addr;
5722fb89
YW
16 char **path;
17 char **driver;
18 char **iftype;
19 char **ifname;
20 char **property;
77f75f4f 21 char **wlan_iftype;
5722fb89
YW
22 char **ssid;
23 Set *bssid;
24} NetMatch;
25
26void net_match_clear(NetMatch *match);
27bool net_match_is_empty(const NetMatch *match);
28
1a3caa49 29int net_match_config(
5722fb89 30 const NetMatch *match,
7e19cc54 31 sd_device *device,
52135071
YW
32 const struct hw_addr_data *hw_addr,
33 const struct hw_addr_data *permanent_hw_addr,
5722fb89
YW
34 const char *driver,
35 unsigned short iftype,
36 const char *ifname,
7e19cc54 37 char * const *alternative_names,
77f75f4f 38 enum nl80211_iftype wlan_iftype,
5722fb89
YW
39 const char *ssid,
40 const struct ether_addr *bssid);
7e19cc54
YW
41
42CONFIG_PARSER_PROTOTYPE(config_parse_net_condition);
43CONFIG_PARSER_PROTOTYPE(config_parse_match_strv);
44CONFIG_PARSER_PROTOTYPE(config_parse_match_ifnames);
45CONFIG_PARSER_PROTOTYPE(config_parse_match_property);