summaryrefslogtreecommitdiffhomepage
path: root/system.c
diff options
context:
space:
mode:
authorStéphan Kochen <stephan@kochen.nl>2012-06-17 17:26:35 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-06-18 23:03:31 +0200
commitb0ef5945af9d68a435868546b4bf30020a6e6ab8 (patch)
treedb33b75482546b66236547b30f96573c9e92d60c /system.c
parent1ada8cef980df7871b12ed230c789eb28f6cb047 (diff)
Add 6rd options to tunnel spec.
This patch adds support for setting the 6rd tunnel options. These are the same options normally specified with `ip tunnel 6rd ...`. Signed-off-by: Stéphan Kochen <stephan@kochen.nl>
Diffstat (limited to 'system.c')
-rw-r--r--system.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/system.c b/system.c
index c85d0e4..1096ad2 100644
--- a/system.c
+++ b/system.c
@@ -19,6 +19,8 @@ static const struct blobmsg_policy tunnel_attrs[__TUNNEL_ATTR_MAX] = {
[TUNNEL_ATTR_LOCAL] = { "local", BLOBMSG_TYPE_STRING },
[TUNNEL_ATTR_REMOTE] = { "remote", BLOBMSG_TYPE_STRING },
[TUNNEL_ATTR_TTL] = { "ttl", BLOBMSG_TYPE_INT32 },
+ [TUNNEL_ATTR_6RD_PREFIX] = { "6rd-prefix", BLOBMSG_TYPE_STRING },
+ [TUNNEL_ATTR_6RD_RELAY_PREFIX] = { "6rd-relay-prefix", BLOBMSG_TYPE_STRING },
};
const struct config_param_list tunnel_attr_list = {