Fix for build failure due to iOAM plugin header file path 77/1677/4
authorShwetha <shwethab@cisco.com>
Tue, 21 Jun 2016 04:02:32 +0000 (05:02 +0100)
committerOle Trøan <ot@cisco.com>
Wed, 22 Jun 2016 10:16:47 +0000 (10:16 +0000)
Change-Id: Ie5d270a01e3ca0687a407aeebc42aacc53a01ddc
Signed-off-by: Shwetha <shwethab@cisco.com>
build-data/packages/plugins.mk
plugins/Makefile.am
plugins/plugins/ioam/encap/ip6_ioam_pot.c
plugins/plugins/ioam/lib-pot/pot_all_api_h.h
plugins/plugins/ioam/lib-pot/pot_api.c
plugins/plugins/ioam/lib-pot/pot_msg_enum.h
plugins/plugins/ioam/lib-pot/pot_test.c
plugins/plugins/sixrd/sixrd.h
vnet/vnet/ip/ip6.h

index f069862..5d217c7 100644 (file)
@@ -1,11 +1,16 @@
 plugins_configure_depend =                     \
     vppinfra-install                           \
     vlib-api-install                           \
+    vpp-api-test-install                       \
+    vnet-install                                \
     vlib-install 
 
 plugins_CPPFLAGS = $(call installed_includes_fn,       \
     vppinfra                                   \
     vlib                                       \
+    vnet                                       \
+    svm                                        \
+    vpp-api-test                               \
     vlib-api)
 
 plugins_LDFLAGS = $(call installed_libs_fn,    \
index fee7493..34b31b4 100644 (file)
@@ -35,7 +35,7 @@ ioam_pot_plugin_la_SOURCES = plugins/ioam/lib-pot/pot_util.c plugins/ioam/encap/
        plugins/ioam/lib-pot/pot_util.h plugins/ioam/lib-pot/math64.h plugins/ioam/lib-pot/pot_api.c
 ioam_pot_plugin_la_LDFLAGS = -module
 
-BUILT_SOURCES = plugins/ioam/lib-pot/pot.api.h
+BUILT_SOURCES += plugins/ioam/lib-pot/pot.api.h
 SUFFIXES = .api.h .api
 
 %.api.h: %.api
@@ -43,7 +43,7 @@ SUFFIXES = .api.h .api
        $(CC) $(CPPFLAGS) -E -P -C -x c $^ \
        | vppapigen --input - --output $@ --show-name $@
 
-nobase_include_HEADERS                        \
+nobase_include_HEADERS +=                       \
   plugins/ioam/lib-pot/pot_all_api_h.h         \
   plugins/ioam/lib-pot/pot_msg_enum.h          \
   plugins/ioam/lib-pot/pot.api.h                \
index e90a664..7af805e 100644 (file)
@@ -25,7 +25,7 @@
 #include <vppinfra/error.h>
 #include <vppinfra/elog.h>
 
-#include <lib-pot/pot_util.h>
+#include <plugins/ioam/lib-pot/pot_util.h>
 
 typedef CLIB_PACKED(struct {
   ip6_hop_by_hop_option_t hdr;
index 574b897..74dfc48 100644 (file)
@@ -13,4 +13,4 @@
  * limitations under the License.
  */
 /* Include the generated file, see BUILT_SOURCES in Makefile.am */
-#include <lib-pot/pot.api.h>
+#include <plugins/ioam/lib-pot/pot.api.h>
index 6566263..e5af1fa 100644 (file)
 
 #include <vnet/vnet.h>
 #include <vnet/plugin/plugin.h>
-#include <lib-pot/pot_util.h>
+#include <plugins/ioam/lib-pot/pot_util.h>
 
 #include <vlibapi/api.h>
 #include <vlibmemory/api.h>
 #include <vlibsocket/api.h>
 
 /* define message IDs */
-#include <lib-pot/pot_msg_enum.h>
+#include <plugins/ioam/lib-pot/pot_msg_enum.h>
 
 /* define message structures */
 #define vl_typedefs
-#include <lib-pot/pot_all_api_h.h> 
+#include <plugins/ioam/lib-pot/pot_all_api_h.h>
 #undef vl_typedefs
 
 /* define generated endian-swappers */
 #define vl_endianfun
-#include <lib-pot/pot_all_api_h.h> 
+#include <plugins/ioam/lib-pot/pot_all_api_h.h>
 #undef vl_endianfun
 
 /* instantiate all the print functions we know about */
 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__)
 #define vl_printfun
-#include <lib-pot/pot_all_api_h.h> 
+#include <plugins/ioam/lib-pot/pot_all_api_h.h>
 #undef vl_printfun
 
 /* Get the API version number */
 #define vl_api_version(n,v) static u32 api_version=(v);
-#include <lib-pot/pot_all_api_h.h>
+#include <plugins/ioam/lib-pot/pot_all_api_h.h>
 #undef vl_api_version
 
 /* 
index bcd7159..87fae74 100644 (file)
@@ -19,7 +19,7 @@
 
 #define vl_msg_id(n,h) n,
 typedef enum {
-#include <lib-pot/pot_all_api_h.h>
+#include <plugins/ioam/lib-pot/pot_all_api_h.h>
     /* We'll want to know how many messages IDs we need... */
     VL_MSG_FIRST_AVAILABLE,
 } vl_msg_id_t;
index 706be44..a6d9330 100644 (file)
 #include <vppinfra/error.h>
 
 /* Declare message IDs */
-#include <lib-pot/pot_msg_enum.h>
+#include <plugins/ioam/lib-pot/pot_msg_enum.h>
 
 /* define message structures */
 #define vl_typedefs
-#include <lib-pot/pot_all_api_h.h> 
+#include <plugins/ioam/lib-pot/pot_all_api_h.h>
 #undef vl_typedefs
 
 /* declare message handlers for each api */
 
 #define vl_endianfun             /* define message structures */
-#include <lib-pot/pot_all_api_h.h> 
+#include <plugins/ioam/lib-pot/pot_all_api_h.h>
 #undef vl_endianfun
 
 /* instantiate all the print functions we know about */
 #define vl_print(handle, ...)
 #define vl_printfun
-#include <lib-pot/pot_all_api_h.h> 
+#include <plugins/ioam/lib-pot/pot_all_api_h.h>
 #undef vl_printfun
 
 /* Get the API version number. */
 #define vl_api_version(n,v) static u32 api_version=(v);
-#include <lib-pot/pot_all_api_h.h>
+#include <plugins/ioam/lib-pot/pot_all_api_h.h>
 #undef vl_api_version
 
 
index 1581649..2f0912f 100644 (file)
@@ -134,7 +134,7 @@ ip4_sixrd_get_domain (u32 adj_index, ip6_address_t *addr,
 
   u32 ai = ip6_fib_lookup_with_table(im6, 0, addr);
   ip_adjacency_t *adj6 = ip_get_adjacency (lm6, ai);
-  if (PREDICT_TRUE(adj6->lookup_next_index == IP_LOOKUP_NEXT_SIXRD)) {
+  if (PREDICT_TRUE(adj6->lookup_next_index == mm->ip6_lookup_next_index)) {
     uword *p = (uword *)adj6->rewrite_data;
     *sixrd_domain_index = p[0];
     return pool_elt_at_index(mm->domains, *sixrd_domain_index);
index 3c27db0..312e398 100644 (file)
@@ -44,6 +44,7 @@
 #include <vnet/ip/ip6_packet.h>
 #include <vnet/ip/ip6_hop_by_hop_packet.h>
 #include <vnet/ip/lookup.h>
+#include <vnet/ip/ip_feature_registration.h>
 #include <stdbool.h>
 #include <vppinfra/bihash_24_8.h>
 #include <vppinfra/bihash_template.h>