diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-07-24 14:46:55 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-10-15 01:59:06 +0900 |
commit | 8d968fdd991d3471aa9b484eac58708786c48d85 (patch) | |
tree | 995c8ba42dab376d1d8c9ce1e7bae4989fe7cd6b /src/libsystemd-network/network-internal.c | |
parent | ad932b156c159094148bfbb508641fb818f932f1 (diff) | |
download | systemd-8d968fdd991d3471aa9b484eac58708786c48d85.tar.gz systemd-8d968fdd991d3471aa9b484eac58708786c48d85.tar.bz2 systemd-8d968fdd991d3471aa9b484eac58708786c48d85.zip |
network: support matching based on wifi SSID
Diffstat (limited to 'src/libsystemd-network/network-internal.c')
-rw-r--r-- | src/libsystemd-network/network-internal.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libsystemd-network/network-internal.c b/src/libsystemd-network/network-internal.c index 1f2e5c7e65..08c756788e 100644 --- a/src/libsystemd-network/network-internal.c +++ b/src/libsystemd-network/network-internal.c @@ -142,9 +142,11 @@ bool net_match_config(Set *match_mac, char * const *match_types, char * const *match_names, char * const *match_property, + char * const *match_ssid, sd_device *device, const struct ether_addr *dev_mac, - const char *dev_name) { + const char *dev_name, + const char *ssid) { const char *dev_path = NULL, *dev_driver = NULL, *dev_type = NULL, *mac_str; @@ -178,6 +180,9 @@ bool net_match_config(Set *match_mac, if (!net_condition_test_property(match_property, device)) return false; + if (!net_condition_test_strv(match_ssid, ssid)) + return false; + return true; } |