[12/16] gtp-rtnl: sync GTPA_FLOW nl attribute name from kernel to userspace
diff mbox

Message ID 1447686417-3979-13-git-send-email-aschultz@tpip.net
State Changes Requested
Delegated to: Pablo Neira
Headers show

Commit Message

Andreas Schultz Nov. 16, 2015, 3:06 p.m. UTC
Signed-off-by: Andreas Schultz <aschultz@tpip.net>
---
 libgtnl/include/linux/gtp_nl.h | 2 +-
 libgtnl/src/gtp-genl.c         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox

diff --git a/libgtnl/include/linux/gtp_nl.h b/libgtnl/include/linux/gtp_nl.h
index a8fdf3a..a1e8ce1 100644
--- a/libgtnl/include/linux/gtp_nl.h
+++ b/libgtnl/include/linux/gtp_nl.h
@@ -39,7 +39,7 @@  enum gtp_attrs {
 	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/libgtnl/src/gtp-genl.c b/libgtnl/src/gtp-genl.c
index 9e68a30..2717821 100644
--- a/libgtnl/src/gtp-genl.c
+++ b/libgtnl/src/gtp-genl.c
@@ -50,7 +50,7 @@  static void gtp_build_payload(struct nlmsghdr *nlh, struct gtp_tunnel *t)
 	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)