summaryrefslogtreecommitdiffhomepage
path: root/interface-ip.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-19 18:46:53 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-19 18:46:53 +0200
commita0dedf26ed338ef420784541da0676ad91e181a7 (patch)
tree7c513367943df3e25b2c71c20dda8c635409269e /interface-ip.h
parent3130d87bd97dbf82f868a9507d60f17c60888c8e (diff)
add support for keeping multiple ip addr/route/dns lists
Diffstat (limited to 'interface-ip.h')
-rw-r--r--interface-ip.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/interface-ip.h b/interface-ip.h
index 6ad9b42..4a1776d 100644
--- a/interface-ip.h
+++ b/interface-ip.h
@@ -1,6 +1,8 @@
#ifndef __INTERFACE_IP_H
#define __INTERFACE_IP_H
+#include "interface.h"
+
enum device_addr_flags {
/* address family for routes and addresses */
DEVADDR_INET4 = (0 << 0),
@@ -54,15 +56,15 @@ struct dns_search_domain {
char name[];
};
-void interface_ip_init(struct interface *iface);
-void interface_add_dns_server(struct interface *iface, const char *str);
-void interface_add_dns_server_list(struct interface *iface, struct blob_attr *list);
-void interface_add_dns_search_list(struct interface *iface, struct blob_attr *list);
-void interface_clear_dns(struct interface *iface);
+void interface_ip_init(struct interface_ip_settings *ip, struct interface *iface);
+void interface_add_dns_server(struct interface_ip_settings *ip, const char *str);
+void interface_add_dns_server_list(struct interface_ip_settings *ip, struct blob_attr *list);
+void interface_add_dns_search_list(struct interface_ip_settings *ip, struct blob_attr *list);
void interface_write_resolv_conf(void);
-void interface_ip_update_start(struct interface *iface);
-void interface_ip_update_complete(struct interface *iface);
+void interface_ip_update_start(struct interface_ip_settings *ip);
+void interface_ip_update_complete(struct interface_ip_settings *ip);
+void interface_ip_flush(struct interface_ip_settings *ip);
#endif