.network/.netdev/.link: allow to match on architecture

This commit is contained in:
Tom Gundersen
2014-02-21 16:05:02 +01:00
parent 7a243b2204
commit edbb03e95a
12 changed files with 53 additions and 12 deletions
+4
View File
@@ -39,6 +39,7 @@ bool net_match_config(const struct ether_addr *match_mac,
Condition *match_host,
Condition *match_virt,
Condition *match_kernel,
Condition *match_arch,
const char *dev_mac,
const char *dev_path,
const char *dev_driver,
@@ -54,6 +55,9 @@ bool net_match_config(const struct ether_addr *match_mac,
if (match_kernel && !condition_test_kernel_command_line(match_kernel))
return 0;
if (match_arch && !condition_test_architecture(match_arch))
return 0;
if (match_mac && (!dev_mac || memcmp(match_mac, ether_aton(dev_mac), ETH_ALEN)))
return 0;
+1
View File
@@ -35,6 +35,7 @@ bool net_match_config(const struct ether_addr *match_mac,
Condition *match_host,
Condition *match_virt,
Condition *match_kernel,
Condition *match_arch,
const char *dev_mac,
const char *dev_path,
const char *dev_driver,