X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fnetwork%2Fnetworkd.h;h=d5c229cf4620b361f384643739d9bbde64a1a7a5;hb=6d0c65ffb4f82e8c6dceb453919b3db54343fc27;hp=fe63cfbd4ea880c13f8ed0dc8c654eefd2b1cde6;hpb=ae06ab1014641feb83ffd0d08f0957e69bbbae08;p=elogind.git diff --git a/src/network/networkd.h b/src/network/networkd.h index fe63cfbd4..d5c229cf4 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; @@ -81,10 +89,7 @@ struct Network { char *description; NetDev *bridge; NetDev *bond; - NetDev *tunnel; - Hashmap *vlans; - Hashmap *macvlans; - Hashmap *vxlans; + Hashmap *stacked_netdevs; DHCPSupport dhcp; bool dhcp_dns; bool dhcp_ntp; @@ -108,12 +113,14 @@ struct Network { char **dns, **ntp; + LLMNRSupport llmnr; + LIST_FIELDS(Network, networks); }; struct Address { Network *network; - uint64_t section; + unsigned section; int family; unsigned char prefixlen; @@ -131,7 +138,7 @@ struct Address { struct Route { Network *network; - uint64_t section; + unsigned section; int family; unsigned char dst_prefixlen; @@ -177,6 +184,7 @@ struct Link { char *ifname; char *state_file; struct ether_addr mac; + uint32_t mtu; struct udev_device *udev_device; unsigned flags; @@ -385,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);