summaryrefslogtreecommitdiff
path: root/proto-shell.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-02-26 17:20:00 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-02-26 17:20:00 +0100
commitf5ca090c260a74fd3576f79ffb8799e8c20e3878 (patch)
treed43de1cbea63ac7a4c2e1857480f2ffa8197c200 /proto-shell.c
parentf365db4c75b7e824eb785be487b0afc18a45ef7f (diff)
downloadnetifd-f5ca090c260a74fd3576f79ffb8799e8c20e3878.tar.gz
proto: move the dns search option handling to the core
Diffstat (limited to 'proto-shell.c')
-rw-r--r--proto-shell.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/proto-shell.c b/proto-shell.c
index f0738a9..7aecf84 100644
--- a/proto-shell.c
+++ b/proto-shell.c
@@ -234,7 +234,6 @@ enum {
NOTIFY_ADDR_EXT,
NOTIFY_ROUTES,
NOTIFY_ROUTES6,
- NOTIFY_DNS_SEARCH,
__NOTIFY_LAST
};
@@ -250,13 +249,11 @@ static const struct blobmsg_policy notify_attr[__NOTIFY_LAST] = {
[NOTIFY_ADDR_EXT] = { .name = "address-external", .type = BLOBMSG_TYPE_BOOL },
[NOTIFY_ROUTES] = { .name = "routes", .type = BLOBMSG_TYPE_ARRAY },
[NOTIFY_ROUTES6] = { .name = "routes6", .type = BLOBMSG_TYPE_ARRAY },
- [NOTIFY_DNS_SEARCH] = { .name = "dns_search", .type = BLOBMSG_TYPE_ARRAY },
};
static int
proto_shell_update_link(struct proto_shell_state *state, struct blob_attr *data, struct blob_attr **tb)
{
- struct interface_ip_settings *ip;
struct interface *iface = state->proto.iface;
struct blob_attr *cur;
int dev_create = 1;
@@ -291,7 +288,6 @@ proto_shell_update_link(struct proto_shell_state *state, struct blob_attr *data,
device_claim(&state->l3_dev);
}
- ip = &iface->proto_ip;
interface_update_start(iface);
proto_apply_ip_settings(iface, data, addr_ext);
@@ -301,9 +297,6 @@ proto_shell_update_link(struct proto_shell_state *state, struct blob_attr *data,
if ((cur = tb[NOTIFY_ROUTES6]) != NULL)
proto_shell_parse_route_list(state->proto.iface, cur, true);
- if ((cur = tb[NOTIFY_DNS_SEARCH]) != NULL)
- interface_add_dns_search_list(ip, cur);
-
interface_update_complete(state->proto.iface);
state->proto.proto_event(&state->proto, IFPEV_UP);