lib/rtnl: rename public define RTNL_GENEVE_ID_MAX

Public defines must have a libnl3 related prefix. Rename
GENEVE_ID_MAX to RTNL_GENEVE_ID_MAX.
This commit is contained in:
Thomas Haller 2018-02-12 15:19:54 +01:00
parent 6b4fc607ba
commit cb8e34859b
4 changed files with 6 additions and 4 deletions

View File

@ -825,8 +825,8 @@ tests_test_create_vlan_CPPFLAGS = $(tests_cppflags)
tests_test_create_vlan_LDADD = $(tests_ldadd)
tests_test_create_vxlan_CPPFLAGS = $(tests_cppflags)
tests_test_create_vxlan_LDADD = $(tests_ldadd)
tests_test_create_geneve_CPPFLAGS = $(tests_cppflags)
tests_test_create_geneve_LDADD = $(tests_ldadd)
tests_test_create_geneve_CPPFLAGS = $(tests_cppflags)
tests_test_create_geneve_LDADD = $(tests_ldadd)
tests_test_create_veth_CPPFLAGS = $(tests_cppflags)
tests_test_create_veth_LDADD = $(tests_ldadd)
tests_test_create_bridge_CPPFLAGS = $(tests_cppflags)

View File

@ -16,7 +16,7 @@
extern "C" {
#endif
#define GENEVE_ID_MAX 16777215
#define RTNL_GENEVE_ID_MAX 16777215
#define RTNL_LINK_GENEVE_F_COLLECT_METADATA (1<<0)

View File

@ -393,7 +393,7 @@ int rtnl_link_geneve_set_id(struct rtnl_link *link, uint32_t id)
IS_GENEVE_LINK_ASSERT(link);
if (id > GENEVE_ID_MAX)
if (id > RTNL_GENEVE_ID_MAX)
return -NLE_INVAL;
geneve->id = id;

2
tests/.gitignore vendored
View File

@ -7,6 +7,7 @@
/test-complex-HTB-with-hash-filters
/test-create-bond
/test-create-bridge
/test-create-geneve
/test-create-ifb
/test-create-ip6tnl
/test-create-ipgre
@ -24,6 +25,7 @@
/test-create-vxlan
/test-delete-link
/test-genl
/test-loopback-up-down
/test-nf-cache-mngr
/test-socket-creation
/test-suite.log