diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-10 22:17:03 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-11 15:23:44 +0200 |
commit | 41842d3f91733786cb4d2bcdc6ca0c3a1a1c594b (patch) | |
tree | ac120ef2e43cc60b18a81ea9fbf5f6f1e60c8f54 /interface-ip.h | |
parent | 34a1a4bad31ba6f138cd6a98249c774ff66285d1 (diff) |
add some code for keeping track of dns servers and search domains and for writing resolv.conf
Diffstat (limited to 'interface-ip.h')
-rw-r--r-- | interface-ip.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/interface-ip.h b/interface-ip.h index 057f0d0..23782ad 100644 --- a/interface-ip.h +++ b/interface-ip.h @@ -43,6 +43,19 @@ struct device_route { union if_addr addr; }; +struct dns_server { + struct list_head list; + int af; + union if_addr addr; +}; + +struct dns_search_domain { + struct list_head list; + char name[]; +}; + void interface_ip_init(struct interface *iface); +void interface_clear_dns(struct interface *iface); +void interface_write_resolv_conf(void); #endif |