]> granicus.if.org Git - libnl/commitdiff
lib/rtnl: rename public define RTNL_GENEVE_ID_MAX
authorThomas Haller <thaller@redhat.com>
Mon, 12 Feb 2018 14:19:54 +0000 (15:19 +0100)
committerThomas Haller <thaller@redhat.com>
Mon, 12 Feb 2018 14:23:02 +0000 (15:23 +0100)
Public defines must have a libnl3 related prefix. Rename
GENEVE_ID_MAX to RTNL_GENEVE_ID_MAX.

Makefile.am
include/netlink/route/link/geneve.h
lib/route/link/geneve.c
tests/.gitignore

index 45a8fd544f785dfdc69dc0d887f5b98c593bf2b2..e287b17316f8a89d257fbe2ff2832588c6573046 100644 (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)
index abd971311dfec96c8be0078713f23f817e5ac5aa..aaba1f9034913540cfada0d4d82df01e23b333ed 100644 (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)
 
index 2afa0dc8c00e0840bfe45139f0fe96df1706fdae..7232b07f84529626cdf475964bee310617b69267 100644 (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;
index 247b0e6f7b268b130f1ce48f962a4fe28c9bcecc..425a7c47e9828dc40e9630677f11af7a4470fc8a 100644 (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