2 * Copyright (c) 2015 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
17 #include <vnet/ip/ip4_to_ip6.h>
18 #include <vnet/ip/ip6_to_ip4.h>
19 #include <vnet/ip/ip_frag.h>
23 IP6_MAPT_NEXT_MAPT_TCP_UDP,
24 IP6_MAPT_NEXT_MAPT_ICMP,
25 IP6_MAPT_NEXT_MAPT_FRAGMENTED,
33 IP6_MAPT_ICMP_NEXT_IP4_LOOKUP,
34 IP6_MAPT_ICMP_NEXT_IP4_FRAG,
35 IP6_MAPT_ICMP_NEXT_DROP,
37 } ip6_mapt_icmp_next_t;
41 IP6_MAPT_TCP_UDP_NEXT_IP4_LOOKUP,
42 IP6_MAPT_TCP_UDP_NEXT_IP4_FRAG,
43 IP6_MAPT_TCP_UDP_NEXT_DROP,
44 IP6_MAPT_TCP_UDP_N_NEXT
45 } ip6_mapt_tcp_udp_next_t;
49 IP6_MAPT_FRAGMENTED_NEXT_IP4_LOOKUP,
50 IP6_MAPT_FRAGMENTED_NEXT_IP4_FRAG,
51 IP6_MAPT_FRAGMENTED_NEXT_DROP,
52 IP6_MAPT_FRAGMENTED_N_NEXT
53 } ip6_mapt_fragmented_next_t;
59 } icmp6_to_icmp_ctx_t;
62 ip6_to_ip4_set_icmp_cb (ip6_header_t * ip6, ip4_header_t * ip4, void *arg)
64 icmp6_to_icmp_ctx_t *ctx = arg;
68 // Note that this prevents an intermediate IPv6 router from answering
70 ip4_sadr = map_get_ip4 (&ip6->src_address, ctx->d->ip6_src_len);
71 if (ip6->src_address.as_u64[0] !=
72 map_get_pfx_net (ctx->d, ip4_sadr, ctx->sender_port)
73 || ip6->src_address.as_u64[1] != map_get_sfx_net (ctx->d, ip4_sadr,
77 ip4->dst_address.as_u32 =
78 ip6_map_t_embedded_address (ctx->d, &ip6->dst_address);
79 ip4->src_address.as_u32 = ip4_sadr;
85 ip6_to_ip4_set_inner_icmp_cb (ip6_header_t * ip6, ip4_header_t * ip4,
88 icmp6_to_icmp_ctx_t *ctx = arg;
91 //Security check of inner packet
92 inner_ip4_dadr = map_get_ip4 (&ip6->dst_address, ctx->d->ip6_src_len);
93 if (ip6->dst_address.as_u64[0] !=
94 map_get_pfx_net (ctx->d, inner_ip4_dadr, ctx->sender_port)
95 || ip6->dst_address.as_u64[1] != map_get_sfx_net (ctx->d,
100 ip4->dst_address.as_u32 = inner_ip4_dadr;
101 ip4->src_address.as_u32 =
102 ip6_map_t_embedded_address (ctx->d, &ip6->src_address);
108 ip6_map_t_icmp (vlib_main_t * vm,
109 vlib_node_runtime_t * node, vlib_frame_t * frame)
111 u32 n_left_from, *from, next_index, *to_next, n_left_to_next;
112 vlib_node_runtime_t *error_node =
113 vlib_node_get_runtime (vm, ip6_map_t_icmp_node.index);
114 from = vlib_frame_vector_args (frame);
115 n_left_from = frame->n_vectors;
116 next_index = node->cached_next_index;
117 vlib_combined_counter_main_t *cm = map_main.domain_counters;
118 u32 thread_index = vm->thread_index;
120 while (n_left_from > 0)
122 vlib_get_next_frame (vm, node, next_index, to_next, n_left_to_next);
124 while (n_left_from > 0 && n_left_to_next > 0)
129 ip6_mapt_icmp_next_t next0;
132 icmp6_to_icmp_ctx_t ctx0;
135 pi0 = to_next[0] = from[0];
140 error0 = MAP_ERROR_NONE;
141 next0 = IP6_MAPT_ICMP_NEXT_IP4_LOOKUP;
143 p0 = vlib_get_buffer (vm, pi0);
144 ip60 = vlib_buffer_get_current (p0);
145 len0 = clib_net_to_host_u16 (ip60->payload_length);
147 pool_elt_at_index (map_main.domains,
148 vnet_buffer (p0)->map_t.map_domain_index);
150 ctx0.sender_port = 0;
152 (vm, p0, ip60, p0->current_length, NULL, &ctx0.sender_port,
153 NULL, NULL, NULL, NULL))
155 // In case of 1:1 mapping, we don't care about the port
156 if (!(d0->ea_bits_len == 0 && d0->rules))
158 error0 = MAP_ERROR_ICMP;
163 if (icmp6_to_icmp (vm, p0, ip6_to_ip4_set_icmp_cb, &ctx0,
164 ip6_to_ip4_set_inner_icmp_cb, &ctx0))
166 error0 = MAP_ERROR_ICMP;
170 if (vnet_buffer (p0)->map_t.mtu < p0->current_length)
172 // Send to fragmentation node if necessary
173 vnet_buffer (p0)->ip_frag.mtu = vnet_buffer (p0)->map_t.mtu;
174 vnet_buffer (p0)->ip_frag.next_index = IP_FRAG_NEXT_IP4_LOOKUP;
175 next0 = IP6_MAPT_ICMP_NEXT_IP4_FRAG;
178 if (PREDICT_TRUE (error0 == MAP_ERROR_NONE))
180 vlib_increment_combined_counter (cm + MAP_DOMAIN_COUNTER_RX,
183 map_t.map_domain_index, 1,
188 next0 = IP6_MAPT_ICMP_NEXT_DROP;
191 p0->error = error_node->errors[error0];
192 vlib_validate_buffer_enqueue_x1 (vm, node, next_index,
193 to_next, n_left_to_next, pi0,
196 vlib_put_next_frame (vm, node, next_index, n_left_to_next);
198 return frame->n_vectors;
202 * Translate IPv6 fragmented packet to IPv4.
205 map_ip6_to_ip4_fragmented (vlib_main_t * vm, vlib_buffer_t * p)
208 ip6_frag_hdr_t *frag;
216 ip6 = vlib_buffer_get_current (p);
219 (vm, p, ip6, p->current_length, &l4_protocol, &l4_offset, &frag_offset))
222 frag = (ip6_frag_hdr_t *) u8_ptr_add (ip6, frag_offset);
223 ip4 = (ip4_header_t *) u8_ptr_add (ip6, l4_offset - sizeof (*ip4));
224 vlib_buffer_advance (p, l4_offset - sizeof (*ip4));
226 frag_id = frag_id_6to4 (frag->identification);
227 frag_more = ip6_frag_hdr_more (frag);
228 frag_offset = ip6_frag_hdr_offset (frag);
230 ip4->dst_address.as_u32 = vnet_buffer (p)->map_t.v6.daddr;
231 ip4->src_address.as_u32 = vnet_buffer (p)->map_t.v6.saddr;
233 ip4->ip_version_and_header_length =
234 IP4_VERSION_AND_HEADER_LENGTH_NO_OPTIONS;
235 ip4->tos = ip6_translate_tos (ip6->ip_version_traffic_class_and_flow_label);
237 u16_net_add (ip6->payload_length,
238 sizeof (*ip4) - l4_offset + sizeof (*ip6));
239 ip4->fragment_id = frag_id;
240 ip4->flags_and_fragment_offset =
241 clib_host_to_net_u16 (frag_offset |
242 (frag_more ? IP4_HEADER_FLAG_MORE_FRAGMENTS : 0));
243 ip4->ttl = ip6->hop_limit;
245 (l4_protocol == IP_PROTOCOL_ICMP6) ? IP_PROTOCOL_ICMP : l4_protocol;
246 ip4->checksum = ip4_header_checksum (ip4);
252 ip6_map_t_fragmented (vlib_main_t * vm,
253 vlib_node_runtime_t * node, vlib_frame_t * frame)
255 u32 n_left_from, *from, next_index, *to_next, n_left_to_next;
256 from = vlib_frame_vector_args (frame);
257 n_left_from = frame->n_vectors;
258 next_index = node->cached_next_index;
259 vlib_node_runtime_t *error_node =
260 vlib_node_get_runtime (vm, ip6_map_t_fragmented_node.index);
262 while (n_left_from > 0)
264 vlib_get_next_frame (vm, node, next_index, to_next, n_left_to_next);
266 while (n_left_from > 0 && n_left_to_next > 0)
272 pi0 = to_next[0] = from[0];
278 next0 = IP6_MAPT_TCP_UDP_NEXT_IP4_LOOKUP;
279 p0 = vlib_get_buffer (vm, pi0);
281 if (map_ip6_to_ip4_fragmented (vm, p0))
283 p0->error = error_node->errors[MAP_ERROR_FRAGMENT_DROPPED];
284 next0 = IP6_MAPT_FRAGMENTED_NEXT_DROP;
288 if (vnet_buffer (p0)->map_t.mtu < p0->current_length)
290 // Send to fragmentation node if necessary
291 vnet_buffer (p0)->ip_frag.mtu = vnet_buffer (p0)->map_t.mtu;
292 vnet_buffer (p0)->ip_frag.next_index =
293 IP_FRAG_NEXT_IP4_LOOKUP;
294 next0 = IP6_MAPT_FRAGMENTED_NEXT_IP4_FRAG;
298 vlib_validate_buffer_enqueue_x1 (vm, node, next_index,
299 to_next, n_left_to_next, pi0,
302 vlib_put_next_frame (vm, node, next_index, n_left_to_next);
304 return frame->n_vectors;
308 * Translate IPv6 UDP/TCP packet to IPv4.
309 * Returns 0 on success.
310 * Returns a non-zero error code on error.
313 map_ip6_to_ip4_tcp_udp (vlib_main_t * vm, vlib_buffer_t * p,
316 map_main_t *mm = &map_main;
326 ip6_address_t old_src, old_dst;
328 ip6 = vlib_buffer_get_current (p);
331 (vm, p, ip6, p->current_length, &l4_protocol, &l4_offset, &frag_offset))
334 if (l4_protocol == IP_PROTOCOL_TCP)
336 tcp_header_t *tcp = ip6_next_header (ip6);
339 csum = tcp->checksum;
340 map_mss_clamping (tcp, &csum, mm->tcp_mss);
341 tcp->checksum = ip_csum_fold (csum);
343 checksum = &tcp->checksum;
347 udp_header_t *udp = ip6_next_header (ip6);
348 checksum = &udp->checksum;
351 old_src.as_u64[0] = ip6->src_address.as_u64[0];
352 old_src.as_u64[1] = ip6->src_address.as_u64[1];
353 old_dst.as_u64[0] = ip6->dst_address.as_u64[0];
354 old_dst.as_u64[1] = ip6->dst_address.as_u64[1];
356 ip4 = (ip4_header_t *) u8_ptr_add (ip6, l4_offset - sizeof (*ip4));
358 vlib_buffer_advance (p, l4_offset - sizeof (*ip4));
360 if (PREDICT_FALSE (frag_offset))
362 // Only the first fragment
363 ip6_frag_hdr_t *hdr = (ip6_frag_hdr_t *) u8_ptr_add (ip6, frag_offset);
364 fragment_id = frag_id_6to4 (hdr->identification);
365 flags = clib_host_to_net_u16 (IP4_HEADER_FLAG_MORE_FRAGMENTS);
373 ip4->dst_address.as_u32 = vnet_buffer (p)->map_t.v6.daddr;
374 ip4->src_address.as_u32 = vnet_buffer (p)->map_t.v6.saddr;
377 * Drop spoofed packets that from a known domain source.
379 u32 map_domain_index = -1;
382 ip4_map_get_domain (&ip4->src_address, &map_domain_index, &error);
386 ip4->ip_version_and_header_length =
387 IP4_VERSION_AND_HEADER_LENGTH_NO_OPTIONS;
388 ip4->tos = ip6_translate_tos (ip6->ip_version_traffic_class_and_flow_label);
390 u16_net_add (ip6->payload_length,
391 sizeof (*ip4) + sizeof (*ip6) - l4_offset);
392 ip4->fragment_id = fragment_id;
393 ip4->flags_and_fragment_offset = flags;
394 ip4->ttl = ip6->hop_limit;
395 ip4->protocol = l4_protocol;
396 ip4->checksum = ip4_header_checksum (ip4);
398 // UDP checksum is optional over IPv4
399 if (!udp_checksum && l4_protocol == IP_PROTOCOL_UDP)
405 csum = ip_csum_sub_even (*checksum, old_src.as_u64[0]);
406 csum = ip_csum_sub_even (csum, old_src.as_u64[1]);
407 csum = ip_csum_sub_even (csum, old_dst.as_u64[0]);
408 csum = ip_csum_sub_even (csum, old_dst.as_u64[1]);
409 csum = ip_csum_add_even (csum, ip4->dst_address.as_u32);
410 csum = ip_csum_add_even (csum, ip4->src_address.as_u32);
411 *checksum = ip_csum_fold (csum);
418 ip6_map_t_tcp_udp (vlib_main_t * vm,
419 vlib_node_runtime_t * node, vlib_frame_t * frame)
421 u32 n_left_from, *from, next_index, *to_next, n_left_to_next;
422 vlib_node_runtime_t *error_node =
423 vlib_node_get_runtime (vm, ip6_map_t_tcp_udp_node.index);
425 from = vlib_frame_vector_args (frame);
426 n_left_from = frame->n_vectors;
427 next_index = node->cached_next_index;
428 while (n_left_from > 0)
430 vlib_get_next_frame (vm, node, next_index, to_next, n_left_to_next);
432 while (n_left_from > 0 && n_left_to_next > 0)
436 ip6_mapt_tcp_udp_next_t next0;
438 pi0 = to_next[0] = from[0];
443 next0 = IP6_MAPT_TCP_UDP_NEXT_IP4_LOOKUP;
445 p0 = vlib_get_buffer (vm, pi0);
447 if (map_ip6_to_ip4_tcp_udp (vm, p0, true))
449 p0->error = error_node->errors[MAP_ERROR_UNKNOWN];
450 next0 = IP6_MAPT_TCP_UDP_NEXT_DROP;
454 if (vnet_buffer (p0)->map_t.mtu < p0->current_length)
456 // Send to fragmentation node if necessary
457 vnet_buffer (p0)->ip_frag.mtu = vnet_buffer (p0)->map_t.mtu;
458 vnet_buffer (p0)->ip_frag.next_index =
459 IP_FRAG_NEXT_IP4_LOOKUP;
460 next0 = IP6_MAPT_TCP_UDP_NEXT_IP4_FRAG;
464 vlib_validate_buffer_enqueue_x1 (vm, node, next_index,
465 to_next, n_left_to_next, pi0,
468 vlib_put_next_frame (vm, node, next_index, n_left_to_next);
470 return frame->n_vectors;
474 ip6_map_t (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame)
476 u32 n_left_from, *from, next_index, *to_next, n_left_to_next;
477 vlib_node_runtime_t *error_node =
478 vlib_node_get_runtime (vm, ip6_map_t_node.index);
479 map_main_t *mm = &map_main;
480 vlib_combined_counter_main_t *cm = map_main.domain_counters;
481 u32 thread_index = vm->thread_index;
483 from = vlib_frame_vector_args (frame);
484 n_left_from = frame->n_vectors;
485 next_index = node->cached_next_index;
486 while (n_left_from > 0)
488 vlib_get_next_frame (vm, node, next_index, to_next, n_left_to_next);
490 while (n_left_from > 0 && n_left_to_next > 0)
499 ip6_frag_hdr_t *frag0;
500 ip6_mapt_next_t next0 = 0;
503 pi0 = to_next[0] = from[0];
508 error0 = MAP_ERROR_NONE;
509 p0 = vlib_get_buffer (vm, pi0);
510 u16 l4_src_port = vnet_buffer (p0)->ip.reass.l4_src_port;
512 ip60 = vlib_buffer_get_current (p0);
515 ip6_map_get_domain (&ip60->dst_address,
516 &vnet_buffer (p0)->map_t.map_domain_index,
519 { /* Guess it wasn't for us */
520 vnet_feature_next (&next0, p0);
524 saddr = map_get_ip4 (&ip60->src_address, d0->ip6_src_len);
525 vnet_buffer (p0)->map_t.v6.saddr = saddr;
526 vnet_buffer (p0)->map_t.v6.daddr =
527 ip6_map_t_embedded_address (d0, &ip60->dst_address);
528 vnet_buffer (p0)->map_t.mtu = d0->mtu ? d0->mtu : ~0;
531 (ip6_parse (vm, p0, ip60, p0->current_length,
532 &(vnet_buffer (p0)->map_t.v6.l4_protocol),
533 &(vnet_buffer (p0)->map_t.v6.l4_offset),
534 &(vnet_buffer (p0)->map_t.v6.frag_offset))))
537 error0 == MAP_ERROR_NONE ? MAP_ERROR_MALFORMED : error0;
542 (u32) clib_net_to_host_u16 (ip60->payload_length) +
543 sizeof (*ip60) - vnet_buffer (p0)->map_t.v6.l4_offset;
545 (ip6_frag_hdr_t *) u8_ptr_add (ip60,
546 vnet_buffer (p0)->map_t.v6.
550 (vnet_buffer (p0)->map_t.v6.frag_offset
551 && ip6_frag_hdr_offset (frag0)))
553 map_port0 = l4_src_port;
554 next0 = IP6_MAPT_NEXT_MAPT_FRAGMENTED;
558 (vnet_buffer (p0)->map_t.v6.l4_protocol == IP_PROTOCOL_TCP))
562 sizeof (tcp_header_t) ? MAP_ERROR_MALFORMED : error0;
563 vnet_buffer (p0)->map_t.checksum_offset =
564 vnet_buffer (p0)->map_t.v6.l4_offset + 16;
565 next0 = IP6_MAPT_NEXT_MAPT_TCP_UDP;
566 map_port0 = l4_src_port;
570 (vnet_buffer (p0)->map_t.v6.l4_protocol == IP_PROTOCOL_UDP))
574 sizeof (udp_header_t) ? MAP_ERROR_MALFORMED : error0;
575 vnet_buffer (p0)->map_t.checksum_offset =
576 vnet_buffer (p0)->map_t.v6.l4_offset + 6;
577 next0 = IP6_MAPT_NEXT_MAPT_TCP_UDP;
578 map_port0 = l4_src_port;
580 else if (vnet_buffer (p0)->map_t.v6.l4_protocol ==
585 sizeof (icmp46_header_t) ? MAP_ERROR_MALFORMED : error0;
586 next0 = IP6_MAPT_NEXT_MAPT_ICMP;
587 if (((icmp46_header_t *)
589 vnet_buffer (p0)->map_t.v6.l4_offset))->code ==
591 || ((icmp46_header_t *)
593 vnet_buffer (p0)->map_t.v6.l4_offset))->
594 code == ICMP6_echo_request)
595 map_port0 = l4_src_port;
599 // TODO: In case of 1:1 mapping, it might be possible to
600 // do something with those packets.
601 error0 = MAP_ERROR_BAD_PROTOCOL;
604 if (PREDICT_FALSE (map_port0 != -1) &&
605 (ip60->src_address.as_u64[0] !=
606 map_get_pfx_net (d0, vnet_buffer (p0)->map_t.v6.saddr,
608 || ip60->src_address.as_u64[1] != map_get_sfx_net (d0,
614 // Security check when map_port0 is not zero (non-first
615 // fragment, UDP or TCP)
617 error0 == MAP_ERROR_NONE ? MAP_ERROR_SEC_CHECK : error0;
621 (error0 == MAP_ERROR_NONE && next0 != IP6_MAPT_NEXT_MAPT_ICMP))
623 vlib_increment_combined_counter (cm + MAP_DOMAIN_COUNTER_RX,
625 vnet_buffer (p0)->map_t.
627 clib_net_to_host_u16 (ip60->
632 (error0 == MAP_ERROR_SEC_CHECK && mm->icmp6_enabled))
634 icmp6_error_set_vnet_buffer (p0, ICMP6_destination_unreachable,
635 ICMP6_destination_unreachable_source_address_failed_policy,
637 next0 = IP6_MAPT_NEXT_ICMP;
641 next0 = (error0 != MAP_ERROR_NONE) ? IP6_MAPT_NEXT_DROP : next0;
644 p0->error = error_node->errors[error0];
645 if (PREDICT_FALSE (p0->flags & VLIB_BUFFER_IS_TRACED))
647 map_add_trace (vm, node, p0,
648 vnet_buffer (p0)->map_t.map_domain_index,
652 vlib_validate_buffer_enqueue_x1 (vm, node, next_index,
653 to_next, n_left_to_next, pi0,
656 vlib_put_next_frame (vm, node, next_index, n_left_to_next);
658 return frame->n_vectors;
661 static char *map_t_error_strings[] = {
662 #define _(sym, string) string,
668 VLIB_REGISTER_NODE(ip6_map_t_fragmented_node) = {
669 .function = ip6_map_t_fragmented,
670 .name = "ip6-map-t-fragmented",
671 .vector_size = sizeof (u32),
672 .format_trace = format_map_trace,
673 .type = VLIB_NODE_TYPE_INTERNAL,
675 .n_errors = MAP_N_ERROR,
676 .error_strings = map_t_error_strings,
678 .n_next_nodes = IP6_MAPT_FRAGMENTED_N_NEXT,
681 [IP6_MAPT_FRAGMENTED_NEXT_IP4_LOOKUP] = "ip4-lookup",
682 [IP6_MAPT_FRAGMENTED_NEXT_IP4_FRAG] = IP4_FRAG_NODE_NAME,
683 [IP6_MAPT_FRAGMENTED_NEXT_DROP] = "error-drop",
689 VLIB_REGISTER_NODE(ip6_map_t_icmp_node) = {
690 .function = ip6_map_t_icmp,
691 .name = "ip6-map-t-icmp",
692 .vector_size = sizeof (u32),
693 .format_trace = format_map_trace,
694 .type = VLIB_NODE_TYPE_INTERNAL,
696 .n_errors = MAP_N_ERROR,
697 .error_strings = map_t_error_strings,
699 .n_next_nodes = IP6_MAPT_ICMP_N_NEXT,
702 [IP6_MAPT_ICMP_NEXT_IP4_LOOKUP] = "ip4-lookup",
703 [IP6_MAPT_ICMP_NEXT_IP4_FRAG] = IP4_FRAG_NODE_NAME,
704 [IP6_MAPT_ICMP_NEXT_DROP] = "error-drop",
710 VLIB_REGISTER_NODE(ip6_map_t_tcp_udp_node) = {
711 .function = ip6_map_t_tcp_udp,
712 .name = "ip6-map-t-tcp-udp",
713 .vector_size = sizeof (u32),
714 .format_trace = format_map_trace,
715 .type = VLIB_NODE_TYPE_INTERNAL,
717 .n_errors = MAP_N_ERROR,
718 .error_strings = map_t_error_strings,
720 .n_next_nodes = IP6_MAPT_TCP_UDP_N_NEXT,
723 [IP6_MAPT_TCP_UDP_NEXT_IP4_LOOKUP] = "ip4-lookup",
724 [IP6_MAPT_TCP_UDP_NEXT_IP4_FRAG] = IP4_FRAG_NODE_NAME,
725 [IP6_MAPT_TCP_UDP_NEXT_DROP] = "error-drop",
731 VNET_FEATURE_INIT (ip6_map_t_feature, static) = {
732 .arc_name = "ip6-unicast",
733 .node_name = "ip6-map-t",
734 .runs_before = VNET_FEATURES ("ip6-flow-classify"),
735 .runs_after = VNET_FEATURES ("ip6-sv-reassembly-feature"),
738 VLIB_REGISTER_NODE(ip6_map_t_node) = {
739 .function = ip6_map_t,
741 .vector_size = sizeof(u32),
742 .format_trace = format_map_trace,
743 .type = VLIB_NODE_TYPE_INTERNAL,
745 .n_errors = MAP_N_ERROR,
746 .error_strings = map_t_error_strings,
748 .n_next_nodes = IP6_MAPT_N_NEXT,
751 [IP6_MAPT_NEXT_MAPT_TCP_UDP] = "ip6-map-t-tcp-udp",
752 [IP6_MAPT_NEXT_MAPT_ICMP] = "ip6-map-t-icmp",
753 [IP6_MAPT_NEXT_MAPT_FRAGMENTED] = "ip6-map-t-fragmented",
754 [IP6_MAPT_NEXT_DROP] = "error-drop",
755 [IP6_MAPT_NEXT_ICMP] = "ip6-icmp-error",
761 * fd.io coding-style-patch-verification: ON
764 * eval: (c-set-style "gnu")