ipsec: ipsec-tun protect
[vpp.git] / src / vnet / ipip / ipip_api.c
index f97aaf7..62a9965 100644 (file)
@@ -150,7 +150,9 @@ vl_api_ipip_tunnel_dump_t_handler (vl_api_ipip_tunnel_dump_t * mp)
     {
     /* *INDENT-OFF* */
     pool_foreach(t, gm->tunnels,
-                 ({ send_ipip_tunnel_details(t, reg, mp->context); }));
+    ({
+      send_ipip_tunnel_details(t, reg, mp->context);
+    }));
     /* *INDENT-ON* */
     }
   else
@@ -178,10 +180,10 @@ vl_api_ipip_6rd_add_tunnel_t_handler (vl_api_ipip_6rd_add_tunnel_t * mp)
     }
   else
     {
-      rv = sixrd_add_tunnel ((ip6_address_t *) & mp->ip6_prefix,
-                            mp->ip6_prefix_len,
-                            (ip4_address_t *) & mp->ip4_prefix,
-                            mp->ip4_prefix_len,
+      rv = sixrd_add_tunnel ((ip6_address_t *) & mp->ip6_prefix.prefix,
+                            mp->ip6_prefix.len,
+                            (ip4_address_t *) & mp->ip4_prefix.prefix,
+                            mp->ip4_prefix.len,
                             (ip4_address_t *) & mp->ip4_src,
                             mp->security_check,
                             ip4_fib_index, ip6_fib_index,