summaryrefslogtreecommitdiff
path: root/proto-static.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-11 12:31:50 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-09-11 12:31:50 +0200
commitbbfa8c18c8ae086b6fd941e950c466f25c134c17 (patch)
tree208e77fd95237c1d6e525861179826d445012766 /proto-static.c
parente32103ad7e944ccbebef4335333481e565311f5c (diff)
downloadnetifd-bbfa8c18c8ae086b6fd941e950c466f25c134c17.tar.gz
move protocol flags to the handler, add a pointer to the handler in the proto state, add PROTO_FLAG_NODEV
Diffstat (limited to 'proto-static.c')
-rw-r--r--proto-static.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto-static.c b/proto-static.c
index 3734f09..bbe304b 100644
--- a/proto-static.c
+++ b/proto-static.c
@@ -241,8 +241,7 @@ static_attach(const struct proto_handler *h, struct interface *iface,
memcpy(state->config, attr, blob_pad_len(attr));
state->proto.free = static_free;
- state->proto.handler = static_handler;
- state->proto.flags = PROTO_FLAG_IMMEDIATE;
+ state->proto.cb = static_handler;
return &state->proto;
@@ -253,6 +252,7 @@ error:
static struct proto_handler static_proto = {
.name = "static",
+ .flags = PROTO_FLAG_IMMEDIATE,
.config_params = &static_attr_list,
.attach = static_attach,
};