diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2013-11-19 12:17:05 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-12-08 18:43:51 +0100 |
commit | e757e7d352a244e20a0c32fec96b35e5893d62ea (patch) | |
tree | f6ad5b1f5678442a2ff07fe380d2baa6838d0b3c /system.c | |
parent | c397d2788ffd27904ab89e437432b481c6e7e806 (diff) |
netifd: Apply tunnel MTU
Tunnel MTU is applied according to the tunnel MTU UCI parameter
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'system.c')
-rw-r--r-- | system.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -16,13 +16,14 @@ #include <fcntl.h> static const struct blobmsg_policy tunnel_attrs[__TUNNEL_ATTR_MAX] = { - [TUNNEL_ATTR_TYPE] = { "mode", BLOBMSG_TYPE_STRING }, - [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 }, - [TUNNEL_ATTR_LINK] = { "link", BLOBMSG_TYPE_STRING }, + [TUNNEL_ATTR_TYPE] = { .name = "mode", .type = BLOBMSG_TYPE_STRING }, + [TUNNEL_ATTR_LOCAL] = { .name = "local", .type = BLOBMSG_TYPE_STRING }, + [TUNNEL_ATTR_REMOTE] = { .name = "remote", .type = BLOBMSG_TYPE_STRING }, + [TUNNEL_ATTR_MTU] = { .name = "mtu", .type = BLOBMSG_TYPE_INT32 }, + [TUNNEL_ATTR_TTL] = { .name = "ttl", .type = BLOBMSG_TYPE_INT32 }, + [TUNNEL_ATTR_6RD_PREFIX] = {.name = "6rd-prefix", .type = BLOBMSG_TYPE_STRING }, + [TUNNEL_ATTR_6RD_RELAY_PREFIX] = { .name = "6rd-relay-prefix", .type = BLOBMSG_TYPE_STRING }, + [TUNNEL_ATTR_LINK] = { .name = "link", .type = BLOBMSG_TYPE_STRING }, }; const struct uci_blob_param_list tunnel_attr_list = { |