summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorPatrick Grimm <stargieg@gmail.com>2015-06-14 21:43:20 +0200
committerPatrick Grimm <stargieg@gmail.com>2015-06-14 21:43:20 +0200
commit3ee43ee22302fb38f74454c38710a5937afb74e3 (patch)
treed665ac2de42a4bcf8dab40d89bdf167703cbe20b /src
parent2ebf6c8216287983779c8ec6597d30893b914a7c (diff)
dhcpv4: read ipv4-address from UBUS to ADDRESS4
Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
Diffstat (limited to 'src')
-rw-r--r--src/ubus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ubus.c b/src/ubus.c
index 0b51183..19bd3af 100644
--- a/src/ubus.c
+++ b/src/ubus.c
@@ -163,6 +163,7 @@ enum {
IFACE_ATTR_DATA,
IFACE_ATTR_PREFIX,
IFACE_ATTR_ADDRESS,
+ IFACE_ATTR_ADDRESS4,
IFACE_ATTR_MAX,
};
@@ -173,6 +174,7 @@ static const struct blobmsg_policy iface_attrs[IFACE_ATTR_MAX] = {
[IFACE_ATTR_DATA] = { .name = "data", .type = BLOBMSG_TYPE_TABLE },
[IFACE_ATTR_PREFIX] = { .name = "ipv6-prefix", .type = BLOBMSG_TYPE_ARRAY },
[IFACE_ATTR_ADDRESS] = { .name = "ipv6-address", .type = BLOBMSG_TYPE_ARRAY },
+ [IFACE_ATTR_ADDRESS4] = { .name = "ipv4-address", .type = BLOBMSG_TYPE_ARRAY },
};
static void handle_dump(_unused struct ubus_request *req, _unused int type, struct blob_attr *msg)