mirror of
https://gitee.com/openharmony/third_party_libnl
synced 2024-11-27 20:20:30 +00:00
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:
parent
6b4fc607ba
commit
cb8e34859b
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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
2
tests/.gitignore
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user