summaryrefslogtreecommitdiff
path: root/src/network/networkd.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-08-03 18:45:07 +0200
committerTom Gundersen <teg@jklm.no>2014-08-04 16:56:34 +0200
commitbd8f65387673e29f46136a4ed172097035002c23 (patch)
treee55d55a020662e8c524bd115c55b2f2d94927f8f /src/network/networkd.h
parent9ccde88c5ae32991e73fbdcc0a75f60bc99327d6 (diff)
networkd: add and expose per-link LLMNR config option
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r--src/network/networkd.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h
index 5d7a08be0c..d5c229cf46 100644
--- a/src/network/networkd.h
+++ b/src/network/networkd.h
@@ -61,6 +61,14 @@ typedef enum DHCPSupport {
_DHCP_SUPPORT_INVALID = -1,
} DHCPSupport;
+typedef enum LLMNRSupport {
+ LLMNR_SUPPORT_NO,
+ LLMNR_SUPPORT_YES,
+ LLMNR_SUPPORT_RESOLVE,
+ _LLMNR_SUPPORT_MAX,
+ _LLMNR_SUPPORT_INVALID = -1,
+} LLMNRSupport;
+
struct Network {
Manager *manager;
@@ -105,6 +113,8 @@ struct Network {
char **dns, **ntp;
+ LLMNRSupport llmnr;
+
LIST_FIELDS(Network, networks);
};
@@ -383,6 +393,15 @@ int config_parse_dhcp(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);
+/* LLMNR support */
+
+const char* llmnr_support_to_string(LLMNRSupport i) _const_;
+LLMNRSupport llmnr_support_from_string(const char *s) _pure_;
+
+int config_parse_llmnr(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);
+
/* Address Pool */
int address_pool_new(Manager *m, AddressPool **ret, int family, const union in_addr_union *u, unsigned prefixlen);