Fix clang compile errors in plugins 89/3789/1
authorNeale Ranns <nranns@cisco.com>
Fri, 11 Nov 2016 16:14:30 +0000 (16:14 +0000)
committerNeale Ranns <nranns@cisco.com>
Fri, 11 Nov 2016 16:14:30 +0000 (16:14 +0000)
Change-Id: I2c2df9b5ba567bde2564c924bd9ad2fbbac775c4
Signed-off-by: Neale Ranns <nranns@cisco.com>
plugins/sixrd-plugin/sixrd/sixrd.c

index cdc0c88..66e631a 100644 (file)
@@ -69,7 +69,7 @@ sixrd_create_domain (ip6_address_t *ip6_prefix,
          .ip6 = d->ip6_prefix,
       },
   };
-  sixrd_dpo_create(FIB_PROTOCOL_IP6,
+  sixrd_dpo_create(DPO_PROTO_IP6,
                   *sixrd_domain_index,
                   &dpo_v6);
   fib_table_entry_special_dpo_add(0, &pfx6,
@@ -84,7 +84,7 @@ sixrd_create_domain (ip6_address_t *ip6_prefix,
    * Find the adj (if any) already contributed and modify it
    */
   fib_prefix_t pfx4 = {
-      .fp_proto = FIB_PROTOCOL_IP6,
+      .fp_proto = FIB_PROTOCOL_IP4,
       .fp_len = 32,
       .fp_addr = {
          .ip4 = d->ip4_src,
@@ -119,7 +119,7 @@ sixrd_create_domain (ip6_address_t *ip6_prefix,
       }
   }
   /* first time addition of the route */
-  sixrd_dpo_create(FIB_PROTOCOL_IP4,
+  sixrd_dpo_create(DPO_PROTO_IP4,
                   *sixrd_domain_index,
                   &dpo_v4);