[PATCH 1/1] vxlan: fix port type
Wang Jian
jianjian.wang1 at gmail.com
Fri Feb 2 00:22:48 PST 2018
port type should be uint16_t.
Signed-off-by: Wang Jian <jianjian.wang1 at gmail.com>
---
include/netlink/route/link/vxlan.h | 4 ++--
lib/route/link/vxlan.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/netlink/route/link/vxlan.h b/include/netlink/route/link/vxlan.h
index a929a9f..15947e4 100644
--- a/include/netlink/route/link/vxlan.h
+++ b/include/netlink/route/link/vxlan.h
@@ -90,8 +90,8 @@ extern int rtnl_link_vxlan_get_l3miss(struct rtnl_link *);
extern int rtnl_link_vxlan_enable_l3miss(struct rtnl_link *);
extern int rtnl_link_vxlan_disable_l3miss(struct rtnl_link *);
-extern int rtnl_link_vxlan_set_port(struct rtnl_link *, uint32_t);
-extern int rtnl_link_vxlan_get_port(struct rtnl_link *, uint32_t *);
+extern int rtnl_link_vxlan_set_port(struct rtnl_link *, uint16_t);
+extern int rtnl_link_vxlan_get_port(struct rtnl_link *, uint16_t *);
extern int rtnl_link_vxlan_set_udp_csum(struct rtnl_link *, uint8_t);
extern int rtnl_link_vxlan_get_udp_csum(struct rtnl_link *);
diff --git a/lib/route/link/vxlan.c b/lib/route/link/vxlan.c
index 9e578ec..f14b6f6 100644
--- a/lib/route/link/vxlan.c
+++ b/lib/route/link/vxlan.c
@@ -1438,7 +1438,7 @@ int rtnl_link_vxlan_disable_l3miss(struct rtnl_link *link)
*
* @return 0 on success or a negative error code
*/
-int rtnl_link_vxlan_set_port(struct rtnl_link *link, uint32_t port)
+int rtnl_link_vxlan_set_port(struct rtnl_link *link, uint16_t port)
{
struct vxlan_info *vxi = link->l_info;
@@ -1457,7 +1457,7 @@ int rtnl_link_vxlan_set_port(struct rtnl_link *link, uint32_t port)
*
* @return 0 on success or a negative error code
*/
-int rtnl_link_vxlan_get_port(struct rtnl_link *link, uint32_t *port)
+int rtnl_link_vxlan_get_port(struct rtnl_link *link, uint16_t *port)
{
struct vxlan_info *vxi = link->l_info;
--
2.7.4
More information about the libnl
mailing list