summaryrefslogtreecommitdiff
path: root/system.c
diff options
context:
space:
mode:
authorJohannes Kimmel <fff@bareminimum.eu>2020-09-04 04:59:43 +0200
committerHans Dedecker <dedeckeh@gmail.com>2020-09-12 21:15:07 +0200
commit55a7b6b7f2f773c06a79cb7359ffdab54ba32450 (patch)
tree61347c309aecfafe89f1fa0cd7d7dbb1db765218 /system.c
parent11223f5550f7dd8faefb85441065b682be16e61f (diff)
downloadnetifd-55a7b6b7f2f773c06a79cb7359ffdab54ba32450.tar.gz
netifd: vxlan: add aging and maxaddress options
For both options the values can just be passed to the kernel. All unsigned values are accepted, thus no range checking required. Signed-off-by: Johannes Kimmel <fff@bareminimum.eu>
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 95721e1..834748e 100644
--- a/system.c
+++ b/system.c
@@ -46,6 +46,8 @@ static const struct blobmsg_policy vxlan_data_attrs[__VXLAN_DATA_ATTR_MAX] = {
[VXLAN_DATA_ATTR_L2MISS] = { .name = "l2miss", .type = BLOBMSG_TYPE_BOOL },
[VXLAN_DATA_ATTR_L3MISS] = { .name = "l3miss", .type = BLOBMSG_TYPE_BOOL },
[VXLAN_DATA_ATTR_GBP] = { .name = "gbp", .type = BLOBMSG_TYPE_BOOL },
+ [VXLAN_DATA_ATTR_AGEING] = { .name = "ageing", .type = BLOBMSG_TYPE_INT32 },
+ [VXLAN_DATA_ATTR_LIMIT] = { .name = "maxaddress", .type = BLOBMSG_TYPE_INT32 },
};
const struct uci_blob_param_list vxlan_data_attr_list = {