gtp-rtnl: sync GTPA_FLOW nl attribute name from kernel to userspace
Signed-off-by: Andreas Schultz <aschultz@tpip.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
diff --git a/include/linux/gtp_nl.h b/include/linux/gtp_nl.h
index a8fdf3a..a1e8ce1 100644
--- a/include/linux/gtp_nl.h
+++ b/include/linux/gtp_nl.h
@@ -39,7 +39,7 @@
GTPA_TID, /* 64 bits for GTPv1 */
GTPA_SGSN_ADDRESS,
GTPA_MS_ADDRESS,
- GTPA_FLOWID, /* only for GTPv0 */
+ GTPA_FLOW, /* only for GTPv0 */
GTPA_NET_NS_FD,
__GTPA_MAX,
};
diff --git a/src/gtp-genl.c b/src/gtp-genl.c
index bffa7a5..ddb7cc7 100644
--- a/src/gtp-genl.c
+++ b/src/gtp-genl.c
@@ -50,7 +50,7 @@
mnl_attr_put_u32(nlh, GTPA_SGSN_ADDRESS, t->sgsn_addr.s_addr);
mnl_attr_put_u32(nlh, GTPA_MS_ADDRESS, t->ms_addr.s_addr);
mnl_attr_put_u64(nlh, GTPA_TID, t->tid);
- mnl_attr_put_u16(nlh, GTPA_FLOWID, t->flowid);
+ mnl_attr_put_u16(nlh, GTPA_FLOW, t->flowid);
}
int gtp_add_tunnel(int genl_id, struct mnl_socket *nl, struct gtp_tunnel *t)