summaryrefslogtreecommitdiff
path: root/src/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c
index 0184c5a..4eb74b2 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -35,7 +35,7 @@ struct parser {
int attr;
};
-static struct parser h[ATTR_MAX] = {
+static struct parser h[NTA_MAX] = {
[NTA_IPV4] = {
.parse = parse_group,
.attr = ATTR_GRP_ORIG_IPV4,
@@ -76,6 +76,10 @@ static struct parser h[ATTR_MAX] = {
.parse = parse_group,
.attr = ATTR_GRP_MASTER_IPV6,
},
+ [NTA_MASTER_L4PROTO] = {
+ .parse = parse_u8,
+ .attr = ATTR_MASTER_L4PROTO,
+ },
[NTA_MASTER_PORT] = {
.parse = parse_group,
.attr = ATTR_GRP_MASTER_PORT,