4 * Copyright (c) 2018 Cisco and/or its affiliates.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or aipiped to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 #include <vnet/adj/adj_midchain.h>
20 #include <vnet/ipip/ipip.h>
21 #include <vnet/vnet.h>
22 #include <vnet/adj/adj_nbr.h>
23 #include <vnet/adj/adj_midchain.h>
24 #include <vnet/fib/ip4_fib.h>
25 #include <vnet/fib/ip6_fib.h>
26 #include <vnet/ip/format.h>
27 #include <vnet/ipip/ipip.h>
28 #include <vnet/nhrp/nhrp.h>
30 ipip_main_t ipip_main;
32 /* Packet trace structure */
42 format_ipip_tx_trace (u8 * s, va_list * args)
44 CLIB_UNUSED (vlib_main_t * vm) = va_arg (*args, vlib_main_t *);
45 CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *);
46 ipip_tx_trace_t *t = va_arg (*args, ipip_tx_trace_t *);
49 format (s, "IPIP: tunnel %d len %d src %U dst %U", t->tunnel_id,
50 t->length, format_ip46_address, &t->src, IP46_TYPE_ANY,
51 format_ip46_address, &t->dst, IP46_TYPE_ANY);
56 ipip_build_rewrite (vnet_main_t * vnm, u32 sw_if_index,
57 vnet_link_t link_type, const void *dst_address)
59 const ip46_address_t *dst;
66 t = ipip_tunnel_db_find_by_sw_if_index (sw_if_index);
74 case IPIP_TRANSPORT_IP4:
75 vec_validate (rewrite, sizeof (*ip4) - 1);
76 ip4 = (ip4_header_t *) rewrite;
77 ip4->ip_version_and_header_length = 0x45;
79 /* fixup ip4 header length, protocol and checksum after-the-fact */
80 ip4->src_address.as_u32 = t->tunnel_src.ip4.as_u32;
81 ip4->dst_address.as_u32 = dst->ip4.as_u32;
82 if (!(t->flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP))
83 ip4_header_set_dscp (ip4, t->dscp);
84 if (t->flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_SET_DF)
85 ip4_header_set_df (ip4);
86 ip4->checksum = ip4_header_checksum (ip4);
89 case IPIP_TRANSPORT_IP6:
90 vec_validate (rewrite, sizeof (*ip6) - 1);
91 ip6 = (ip6_header_t *) rewrite;
92 ip6->ip_version_traffic_class_and_flow_label =
93 clib_host_to_net_u32 (6 << 28);
95 /* fixup ip6 header length and protocol after-the-fact */
96 ip6->src_address.as_u64[0] = t->tunnel_src.ip6.as_u64[0];
97 ip6->src_address.as_u64[1] = t->tunnel_src.ip6.as_u64[1];
98 ip6->dst_address.as_u64[0] = dst->ip6.as_u64[0];
99 ip6->dst_address.as_u64[1] = dst->ip6.as_u64[1];
100 if (!(t->flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP))
101 ip6_set_dscp_network_order (ip6, t->dscp);
108 ipip4_fixup (vlib_main_t * vm, const ip_adjacency_t * adj, vlib_buffer_t * b,
111 tunnel_encap_decap_flags_t flags;
114 flags = pointer_to_uword (data);
116 ip4 = vlib_buffer_get_current (b);
117 ip4->length = clib_host_to_net_u16 (vlib_buffer_length_in_chain (vm, b));
118 switch (adj->ia_link)
121 ip4->protocol = IP_PROTOCOL_IPV6;
122 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
123 ip4_header_set_dscp (ip4,
124 ip6_dscp_network_order ((ip6_header_t *) (ip4 +
126 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN)
127 ip4_header_set_ecn (ip4,
128 ip6_ecn_network_order ((ip6_header_t *) (ip4 +
133 ip4->protocol = IP_PROTOCOL_IP_IN_IP;
134 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
135 ip4_header_set_dscp (ip4, ip4_header_get_dscp (ip4 + 1));
136 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN)
137 ip4_header_set_ecn (ip4, ip4_header_get_ecn (ip4 + 1));
138 if ((flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DF) &&
139 ip4_header_get_df (ip4 + 1))
140 ip4_header_set_df (ip4);
147 ip4->checksum = ip4_header_checksum (ip4);
151 ipip6_fixup (vlib_main_t * vm, const ip_adjacency_t * adj, vlib_buffer_t * b,
154 tunnel_encap_decap_flags_t flags;
157 flags = pointer_to_uword (data);
159 /* Must set locally originated otherwise we're not allowed to
160 fragment the packet later */
161 b->flags |= VNET_BUFFER_F_LOCALLY_ORIGINATED;
163 ip6 = vlib_buffer_get_current (b);
164 ip6->payload_length =
165 clib_host_to_net_u16 (vlib_buffer_length_in_chain (vm, b) -
167 switch (adj->ia_link)
170 ip6->protocol = IP_PROTOCOL_IPV6;
171 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
172 ip6_set_dscp_network_order (ip6, ip6_dscp_network_order (ip6 + 1));
173 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN)
174 ip6_set_ecn_network_order (ip6, ip6_ecn_network_order (ip6 + 1));
178 ip6->protocol = IP_PROTOCOL_IP_IN_IP;
179 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP)
180 ip6_set_dscp_network_order
181 (ip6, ip4_header_get_dscp ((ip4_header_t *) (ip6 + 1)));
182 if (flags & TUNNEL_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN)
183 ip6_set_ecn_network_order
184 (ip6, ip4_header_get_ecn ((ip4_header_t *) (ip6 + 1)));
193 ipip_tunnel_stack (adj_index_t ai)
200 sw_if_index = adj->rewrite_header.sw_if_index;
202 t = ipip_tunnel_db_find_by_sw_if_index (sw_if_index);
206 if ((vnet_hw_interface_get_flags (vnet_get_main (), t->hw_if_index) &
207 VNET_HW_INTERFACE_FLAG_LINK_UP) == 0)
209 adj_midchain_delegate_unstack (ai);
215 .fp_len = t->transport == IPIP_TRANSPORT_IP6 ? 128 : 32,
216 .fp_proto = (t->transport == IPIP_TRANSPORT_IP6 ?
219 .fp_addr = t->tunnel_dst
223 adj_midchain_delegate_stack (ai, t->fib_index, &dst);
228 ipip_adj_walk_cb (adj_index_t ai, void *ctx)
230 ipip_tunnel_stack (ai);
232 return (ADJ_WALK_RC_CONTINUE);
236 ipip_tunnel_restack (ipip_tunnel_t * gt)
238 fib_protocol_t proto;
241 * walk all the adjacencies on th IPIP interface and restack them
243 FOR_EACH_FIB_IP_PROTOCOL (proto)
245 adj_nbr_walk (gt->sw_if_index, proto, ipip_adj_walk_cb, NULL);
250 ipip_update_adj (vnet_main_t * vnm, u32 sw_if_index, adj_index_t ai)
252 adj_midchain_fixup_t f;
256 t = ipip_tunnel_db_find_by_sw_if_index (sw_if_index);
260 f = t->transport == IPIP_TRANSPORT_IP6 ? ipip6_fixup : ipip4_fixup;
261 af = ADJ_FLAG_MIDCHAIN_IP_STACK;
262 if (VNET_LINK_ETHERNET == adj_get_link_type (ai))
263 af |= ADJ_FLAG_MIDCHAIN_NO_COUNT;
265 adj_nbr_midchain_update_rewrite
266 (ai, f, uword_to_pointer (t->flags, void *), af,
267 ipip_build_rewrite (vnm, sw_if_index,
268 adj_get_link_type (ai), &t->tunnel_dst));
269 ipip_tunnel_stack (ai);
272 typedef struct mipip_walk_ctx_t_
274 const ipip_tunnel_t *t;
275 const nhrp_entry_t *ne;
279 mipip_mk_complete_walk (adj_index_t ai, void *data)
281 mipip_walk_ctx_t *ctx = data;
282 adj_midchain_fixup_t f;
284 f = ctx->t->transport == IPIP_TRANSPORT_IP6 ? ipip6_fixup : ipip4_fixup;
286 adj_nbr_midchain_update_rewrite
287 (ai, f, uword_to_pointer (ctx->t->flags, void *),
288 ADJ_FLAG_MIDCHAIN_IP_STACK, ipip_build_rewrite (vnet_get_main (),
290 adj_get_link_type (ai),
292 (ctx->ne)->fp_addr));
294 nhrp_entry_adj_stack (ctx->ne, ai);
296 return (ADJ_WALK_RC_CONTINUE);
300 mipip_mk_incomplete_walk (adj_index_t ai, void *data)
302 ipip_tunnel_t *t = data;
303 adj_midchain_fixup_t f;
305 f = t->transport == IPIP_TRANSPORT_IP6 ? ipip6_fixup : ipip4_fixup;
307 adj_nbr_midchain_update_rewrite (ai, f, NULL, ADJ_FLAG_NONE, NULL);
309 adj_midchain_delegate_unstack (ai);
311 return (ADJ_WALK_RC_CONTINUE);
315 mipip_update_adj (vnet_main_t * vnm, u32 sw_if_index, adj_index_t ai)
317 ipip_main_t *gm = &ipip_main;
318 adj_midchain_fixup_t f;
325 ti = gm->tunnel_index_by_sw_if_index[sw_if_index];
326 t = pool_elt_at_index (gm->tunnels, ti);
327 f = t->transport == IPIP_TRANSPORT_IP6 ? ipip6_fixup : ipip4_fixup;
329 ne = nhrp_entry_find (sw_if_index, &adj->sub_type.nbr.next_hop);
333 // no NHRP entry to provide the next-hop
334 adj_nbr_midchain_update_rewrite
335 (ai, f, uword_to_pointer (t->flags, void *), ADJ_FLAG_NONE, NULL);
339 mipip_walk_ctx_t ctx = {
343 adj_nbr_walk_nh (sw_if_index,
345 &adj->sub_type.nbr.next_hop, mipip_mk_complete_walk, &ctx);
349 format_ipip_tunnel_name (u8 * s, va_list * args)
351 u32 dev_instance = va_arg (*args, u32);
352 ipip_main_t *gm = &ipip_main;
355 if (dev_instance >= vec_len (gm->tunnels))
356 return format (s, "<improperly-referenced>");
358 t = pool_elt_at_index (gm->tunnels, dev_instance);
359 return format (s, "ipip%d", t->user_instance);
363 format_ipip_device (u8 * s, va_list * args)
365 u32 dev_instance = va_arg (*args, u32);
366 CLIB_UNUSED (int verbose) = va_arg (*args, int);
368 s = format (s, "IPIP tunnel: id %d\n", dev_instance);
372 static clib_error_t *
373 ipip_interface_admin_up_down (vnet_main_t * vnm, u32 hw_if_index, u32 flags)
375 vnet_hw_interface_t *hi;
378 hi = vnet_get_hw_interface (vnm, hw_if_index);
380 t = ipip_tunnel_db_find_by_sw_if_index (hi->sw_if_index);
384 if (flags & VNET_SW_INTERFACE_FLAG_ADMIN_UP)
385 vnet_hw_interface_set_flags (vnm, hw_if_index,
386 VNET_HW_INTERFACE_FLAG_LINK_UP);
388 vnet_hw_interface_set_flags (vnm, hw_if_index, 0 /* down */ );
390 ipip_tunnel_restack (t);
392 return /* no error */ 0;
396 ipip_tunnel_desc (u32 sw_if_index,
397 ip46_address_t * src, ip46_address_t * dst, u8 * is_l2)
401 t = ipip_tunnel_db_find_by_sw_if_index (sw_if_index);
405 *src = t->tunnel_src;
406 *dst = t->tunnel_dst;
413 VNET_DEVICE_CLASS(ipip_device_class) = {
414 .name = "IPIP tunnel device",
415 .format_device_name = format_ipip_tunnel_name,
416 .format_device = format_ipip_device,
417 .format_tx_trace = format_ipip_tx_trace,
418 .admin_up_down_function = ipip_interface_admin_up_down,
419 .ip_tun_desc = ipip_tunnel_desc,
425 VNET_HW_INTERFACE_CLASS(ipip_hw_interface_class) = {
427 //.format_header = format_ipip_header_with_length,
428 //.unformat_header = unformat_ipip_header,
429 .build_rewrite = ipip_build_rewrite,
430 .update_adjacency = ipip_update_adj,
431 .flags = VNET_HW_INTERFACE_CLASS_FLAG_P2P,
434 VNET_HW_INTERFACE_CLASS(mipip_hw_interface_class) = {
436 //.format_header = format_ipip_header_with_length,
437 //.unformat_header = unformat_ipip_header,
438 .build_rewrite = ipip_build_rewrite,
439 .update_adjacency = mipip_update_adj,
440 .flags = VNET_HW_INTERFACE_CLASS_FLAG_NBMA,
445 ipip_tunnel_db_find (const ipip_tunnel_key_t * key)
447 ipip_main_t *gm = &ipip_main;
450 p = hash_get_mem (gm->tunnel_by_key, key);
453 return (pool_elt_at_index (gm->tunnels, p[0]));
457 ipip_tunnel_db_find_by_sw_if_index (u32 sw_if_index)
459 ipip_main_t *gm = &ipip_main;
460 if (vec_len (gm->tunnel_index_by_sw_if_index) <= sw_if_index)
462 u32 ti = gm->tunnel_index_by_sw_if_index[sw_if_index];
465 return pool_elt_at_index (gm->tunnels, ti);
469 ipip_tunnel_db_add (ipip_tunnel_t * t, const ipip_tunnel_key_t * key)
471 ipip_main_t *gm = &ipip_main;
473 hash_set_mem_alloc (&gm->tunnel_by_key, key, t->dev_instance);
477 ipip_tunnel_db_remove (ipip_tunnel_t * t, const ipip_tunnel_key_t * key)
479 ipip_main_t *gm = &ipip_main;
481 hash_unset_mem_free (&gm->tunnel_by_key, key);
485 ipip_mk_key_i (ipip_transport_t transport,
487 const ip46_address_t * src,
488 const ip46_address_t * dst,
489 u32 fib_index, ipip_tunnel_key_t * key)
491 key->transport = transport;
495 key->fib_index = fib_index;
500 ipip_mk_key (const ipip_tunnel_t * t, ipip_tunnel_key_t * key)
502 ipip_mk_key_i (t->transport, t->mode,
503 &t->tunnel_src, &t->tunnel_dst, t->fib_index, key);
507 ipip_nhrp_mk_key (const ipip_tunnel_t * t,
508 const nhrp_entry_t * ne, ipip_tunnel_key_t * key)
510 const fib_prefix_t *nh;
512 nh = nhrp_entry_get_nh (ne);
514 /* construct the key using mode P2P so it can be found in the DP */
515 ipip_mk_key_i (t->transport, IPIP_MODE_P2P,
516 &t->tunnel_src, &nh->fp_addr,
517 nhrp_entry_get_fib_index (ne), key);
521 ipip_nhrp_entry_added (const nhrp_entry_t * ne)
523 ipip_main_t *gm = &ipip_main;
524 const ip46_address_t *nh;
525 ipip_tunnel_key_t key;
530 sw_if_index = nhrp_entry_get_sw_if_index (ne);
531 if (vec_len (gm->tunnel_index_by_sw_if_index) < sw_if_index)
534 t_idx = gm->tunnel_index_by_sw_if_index[sw_if_index];
536 if (INDEX_INVALID == t_idx)
539 t = pool_elt_at_index (gm->tunnels, t_idx);
541 ipip_nhrp_mk_key (t, ne, &key);
542 ipip_tunnel_db_add (t, &key);
544 // update the rewrites for each of the adjacencies for this next-hop
545 mipip_walk_ctx_t ctx = {
549 nh = nhrp_entry_get_peer (ne);
550 adj_nbr_walk_nh (nhrp_entry_get_sw_if_index (ne),
551 (ip46_address_is_ip4 (nh) ?
553 FIB_PROTOCOL_IP6), nh, mipip_mk_complete_walk, &ctx);
557 ipip_nhrp_entry_deleted (const nhrp_entry_t * ne)
559 ipip_main_t *gm = &ipip_main;
560 const ip46_address_t *nh;
561 ipip_tunnel_key_t key;
566 sw_if_index = nhrp_entry_get_sw_if_index (ne);
567 if (vec_len (gm->tunnel_index_by_sw_if_index) < sw_if_index)
570 t_idx = gm->tunnel_index_by_sw_if_index[sw_if_index];
572 if (INDEX_INVALID == t_idx)
575 t = pool_elt_at_index (gm->tunnels, t_idx);
577 ipip_nhrp_mk_key (t, ne, &key);
578 ipip_tunnel_db_remove (t, &key);
580 nh = nhrp_entry_get_peer (ne);
582 /* make all the adjacencies incomplete */
583 adj_nbr_walk_nh (nhrp_entry_get_sw_if_index (ne),
584 (ip46_address_is_ip4 (nh) ?
586 FIB_PROTOCOL_IP6), nh, mipip_mk_incomplete_walk, t);
590 ipip_tunnel_delete_nhrp_walk (index_t nei, void *ctx)
592 ipip_tunnel_t *t = ctx;
593 ipip_tunnel_key_t key;
595 ipip_nhrp_mk_key (t, nhrp_entry_get (nei), &key);
596 ipip_tunnel_db_remove (t, &key);
598 return (WALK_CONTINUE);
602 ipip_tunnel_add_nhrp_walk (index_t nei, void *ctx)
604 ipip_tunnel_t *t = ctx;
605 ipip_tunnel_key_t key;
607 ipip_nhrp_mk_key (t, nhrp_entry_get (nei), &key);
608 ipip_tunnel_db_add (t, &key);
610 return (WALK_CONTINUE);
614 ipip_add_tunnel (ipip_transport_t transport,
615 u32 instance, ip46_address_t * src, ip46_address_t * dst,
616 u32 fib_index, tunnel_encap_decap_flags_t flags,
617 ip_dscp_t dscp, tunnel_mode_t tmode, u32 * sw_if_indexp)
619 ipip_main_t *gm = &ipip_main;
620 vnet_main_t *vnm = gm->vnet_main;
621 ip4_main_t *im4 = &ip4_main;
622 ip6_main_t *im6 = &ip6_main;
624 vnet_hw_interface_t *hi;
625 u32 hw_if_index, sw_if_index;
626 ipip_tunnel_key_t key;
629 if (tmode == TUNNEL_MODE_MP && !ip46_address_is_zero (dst))
630 return (VNET_API_ERROR_INVALID_DST_ADDRESS);
632 mode = (tmode == TUNNEL_MODE_P2P ? IPIP_MODE_P2P : IPIP_MODE_P2MP);
633 ipip_mk_key_i (transport, mode, src, dst, fib_index, &key);
635 t = ipip_tunnel_db_find (&key);
639 sw_if_indexp[0] = t->sw_if_index;
640 return VNET_API_ERROR_IF_ALREADY_EXISTS;
643 pool_get_aligned (gm->tunnels, t, CLIB_CACHE_LINE_BYTES);
644 clib_memset (t, 0, sizeof (*t));
646 /* Reconcile the real dev_instance and a possible requested instance */
647 u32 t_idx = t - gm->tunnels; /* tunnel index (or instance) */
648 u32 u_idx = instance; /* user specified instance */
651 if (hash_get (gm->instance_used, u_idx))
653 pool_put (gm->tunnels, t);
654 return VNET_API_ERROR_INSTANCE_IN_USE;
656 hash_set (gm->instance_used, u_idx, 1);
658 t->dev_instance = t_idx; /* actual */
659 t->user_instance = u_idx; /* name */
661 hw_if_index = vnet_register_interface (vnm, ipip_device_class.index, t_idx,
662 (mode == IPIP_MODE_P2P ?
663 ipip_hw_interface_class.index :
664 mipip_hw_interface_class.index),
667 hi = vnet_get_hw_interface (vnm, hw_if_index);
668 sw_if_index = hi->sw_if_index;
671 t->hw_if_index = hw_if_index;
672 t->fib_index = fib_index;
673 t->sw_if_index = sw_if_index;
676 t->transport = transport;
678 vec_validate_init_empty (gm->tunnel_index_by_sw_if_index, sw_if_index, ~0);
679 gm->tunnel_index_by_sw_if_index[sw_if_index] = t_idx;
681 if (t->transport == IPIP_TRANSPORT_IP4)
683 vec_validate (im4->fib_index_by_sw_if_index, sw_if_index);
684 hi->min_packet_bytes = 64 + sizeof (ip4_header_t);
688 vec_validate (im6->fib_index_by_sw_if_index, sw_if_index);
689 hi->min_packet_bytes = 64 + sizeof (ip6_header_t);
692 /* Standard default ipip MTU. */
693 vnet_sw_interface_set_mtu (vnm, sw_if_index, 9000);
695 t->tunnel_src = *src;
696 t->tunnel_dst = *dst;
698 ipip_tunnel_db_add (t, &key);
700 if (t->mode == IPIP_MODE_P2MP)
701 nhrp_walk_itf (t->sw_if_index, ipip_tunnel_add_nhrp_walk, t);
704 *sw_if_indexp = sw_if_index;
706 if (t->transport == IPIP_TRANSPORT_IP6 && !gm->ip6_protocol_registered)
708 ip6_register_protocol (IP_PROTOCOL_IP_IN_IP, ipip6_input_node.index);
709 ip6_register_protocol (IP_PROTOCOL_IPV6, ipip6_input_node.index);
710 gm->ip6_protocol_registered = true;
712 else if (t->transport == IPIP_TRANSPORT_IP4 && !gm->ip4_protocol_registered)
714 ip4_register_protocol (IP_PROTOCOL_IP_IN_IP, ipip4_input_node.index);
715 ip4_register_protocol (IP_PROTOCOL_IPV6, ipip4_input_node.index);
716 gm->ip4_protocol_registered = true;
722 ipip_del_tunnel (u32 sw_if_index)
724 ipip_main_t *gm = &ipip_main;
725 vnet_main_t *vnm = gm->vnet_main;
727 ipip_tunnel_key_t key;
729 t = ipip_tunnel_db_find_by_sw_if_index (sw_if_index);
731 return VNET_API_ERROR_NO_SUCH_ENTRY;
733 if (t->mode == IPIP_MODE_P2MP)
734 nhrp_walk_itf (t->sw_if_index, ipip_tunnel_delete_nhrp_walk, t);
736 vnet_sw_interface_set_flags (vnm, sw_if_index, 0 /* down */ );
737 gm->tunnel_index_by_sw_if_index[sw_if_index] = ~0;
738 vnet_delete_hw_interface (vnm, t->hw_if_index);
739 hash_unset (gm->instance_used, t->user_instance);
741 ipip_mk_key (t, &key);
742 ipip_tunnel_db_remove (t, &key);
743 pool_put (gm->tunnels, t);
748 const static nhrp_vft_t ipip_nhrp_vft = {
749 .nv_added = ipip_nhrp_entry_added,
750 .nv_deleted = ipip_nhrp_entry_deleted,
753 static clib_error_t *
754 ipip_init (vlib_main_t * vm)
756 ipip_main_t *gm = &ipip_main;
758 clib_memset (gm, 0, sizeof (gm[0]));
760 gm->vnet_main = vnet_get_main ();
762 hash_create_mem (0, sizeof (ipip_tunnel_key_t), sizeof (uword));
764 nhrp_register (&ipip_nhrp_vft);
769 VLIB_INIT_FUNCTION (ipip_init);
772 * fd.io coding-style-patch-verification: ON
775 * eval: (c-set-style "gnu")