diff options
author | Tom Gundersen <teg@jklm.no> | 2014-02-20 19:39:49 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-02-20 21:50:34 +0100 |
commit | 2cc412b59353576cece2d5b30c6a39c70552f0a0 (patch) | |
tree | dc8257a5b09b0ceca44ddda74d9df20f825e9842 /src/shared/net-util.h | |
parent | b77c08e06b67d5b1dd8aaf67b732e93851d8ae43 (diff) |
network/link: Match - filter on kernel cmdline, host and virt
Diffstat (limited to 'src/shared/net-util.h')
-rw-r--r-- | src/shared/net-util.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shared/net-util.h b/src/shared/net-util.h index 0ec04db87e..a20b62e052 100644 --- a/src/shared/net-util.h +++ b/src/shared/net-util.h @@ -25,11 +25,16 @@ #include <netinet/in.h> #include <stdbool.h> +#include "condition-util.h" + bool net_match_config(const struct ether_addr *match_mac, const char *match_path, const char *match_driver, const char *match_type, const char *match_name, + Condition *match_host, + Condition *match_virt, + Condition *match_kernel, const char *dev_mac, const char *dev_path, const char *dev_driver, @@ -38,6 +43,10 @@ bool net_match_config(const struct ether_addr *match_mac, unsigned net_netmask_to_prefixlen(const struct in_addr *netmask); +int config_parse_net_condition(const char *unit, const char *filename, unsigned line, + const char *section, unsigned section_line, const char *lvalue, + int ltype, const char *rvalue, void *data, void *userdata); + int config_parse_hwaddr(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); |