2 * Copyright (c) 2017 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.
16 #include <vnet/vnet.h>
17 #include <vlib/vlib.h>
18 #include <vlibapi/api.h>
19 #include <vlibmemory/api.h>
21 #include <vnet/ip/ip.h>
22 #include <vnet/ip/ip6_hop_by_hop.h>
23 #include <ioam/encap/ip6_ioam_trace.h>
24 #include <ioam/encap/ip6_ioam_e2e.h>
25 #include <ioam/udp-ping/udp_ping_packet.h>
26 #include <ioam/udp-ping/udp_ping.h>
27 #include <ioam/udp-ping/udp_ping_util.h>
28 #include <vnet/srv6/sr_packet.h>
34 UDP_PING_NEXT_UDP_LOOKUP,
36 UDP_PING_NEXT_IP6_LOOKUP,
37 UDP_PING_NEXT_IP6_DROP,
41 udp_ping_main_t udp_ping_main;
44 udp_ping_process (vlib_main_t * vm,
45 vlib_node_runtime_t * rt, vlib_frame_t * f);
48 ip6_hbh_ioam_trace_data_list_handler (vlib_buffer_t * b, ip6_header_t * ip,
49 ip6_hop_by_hop_option_t * opt);
62 /* packet trace format function */
64 format_udp_ping_trace (u8 * s, va_list * args)
66 CLIB_UNUSED (vlib_main_t * vm) = va_arg (*args, vlib_main_t *);
67 CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *);
68 udp_ping_trace_t *t = va_arg (*args, udp_ping_trace_t *);
70 s = format (s, "udp-ping-local: src %U, dst %U, src_port %u, dst_port %u "
71 "handle %u, next_index %u, msg_type %u",
72 format_ip6_address, &t->src,
73 format_ip6_address, &t->dst,
74 t->src_port, t->dst_port,
75 t->handle, t->next_index, t->msg_type);
80 VLIB_REGISTER_NODE (udp_ping_node, static) =
82 .function = udp_ping_process,
83 .type = VLIB_NODE_TYPE_PROCESS,
84 .name = "udp-ping-process",
89 udp_ping_calculate_timer_interval (void)
92 ip46_udp_ping_flow *flow = NULL;
93 u16 min_interval = 0x1e9;
95 for (i = 0; i < vec_len (udp_ping_main.ip46_flow); i++)
97 if (pool_is_free_index (udp_ping_main.ip46_flow, i))
100 flow = pool_elt_at_index (udp_ping_main.ip46_flow, i);
102 if (min_interval > flow->udp_data.interval)
103 min_interval = flow->udp_data.interval;
106 if (udp_ping_main.timer_interval != min_interval)
108 udp_ping_main.timer_interval = min_interval;
109 vlib_process_signal_event (udp_ping_main.vlib_main,
110 udp_ping_node.index, EVENT_SIG_RECHECK, 0);
115 ip46_udp_ping_set_flow (ip46_address_t src, ip46_address_t dst,
116 u16 start_src_port, u16 end_src_port,
117 u16 start_dst_port, u16 end_dst_port,
118 u16 interval, u8 fault_det, u8 is_disable)
121 ip46_udp_ping_flow *flow = NULL;
124 for (i = 0; i < vec_len (udp_ping_main.ip46_flow); i++)
126 if (pool_is_free_index (udp_ping_main.ip46_flow, i))
129 flow = pool_elt_at_index (udp_ping_main.ip46_flow, i);
130 if ((0 == udp_ping_compare_flow (src, dst,
131 start_src_port, end_src_port,
132 start_dst_port, end_dst_port, flow)))
144 cur_interval = flow->udp_data.interval;
145 udp_ping_free_flow_data (flow);
146 pool_put_index (udp_ping_main.ip46_flow, i);
147 if (udp_ping_main.timer_interval == interval)
148 udp_ping_calculate_timer_interval ();
152 cur_interval = flow->udp_data.interval;
153 flow->udp_data.interval = interval;
154 if (udp_ping_main.timer_interval > interval)
156 udp_ping_main.timer_interval = interval;
157 vlib_process_signal_event (udp_ping_main.vlib_main,
159 EVENT_SIG_RECHECK, 0);
161 else if (udp_ping_main.timer_interval == cur_interval)
162 udp_ping_calculate_timer_interval ();
167 /* Delete operation and item not found */
171 /* Alloc new session */
172 pool_get_aligned (udp_ping_main.ip46_flow, flow, CLIB_CACHE_LINE_BYTES);
173 udp_ping_populate_flow (src, dst,
174 start_src_port, end_src_port,
175 start_dst_port, end_dst_port,
176 interval, fault_det, flow);
178 udp_ping_create_rewrite (flow, (flow - udp_ping_main.ip46_flow));
180 if (udp_ping_main.timer_interval > interval)
182 udp_ping_main.timer_interval = interval;
183 vlib_process_signal_event (udp_ping_main.vlib_main,
184 udp_ping_node.index, EVENT_SIG_RECHECK, 0);
190 unformat_port_range (unformat_input_t * input, va_list * args)
192 u16 *start_port, *end_port;
194 u8 colon_present = 0;
196 start_port = va_arg (*args, u16 *);
197 end_port = va_arg (*args, u16 *);
199 *start_port = *end_port = 0;
201 while ((c = unformat_get_input (input)) != UNFORMAT_END_OF_INPUT)
206 *start_port = ((*start_port) * 10) + (c - '0');
225 while ((c = unformat_get_input (input)) != UNFORMAT_END_OF_INPUT)
230 *end_port = ((*end_port) * 10) + (c - '0');
238 if (end_port < start_port)
244 static clib_error_t *
245 set_udp_ping_command_fn (vlib_main_t * vm,
246 unformat_input_t * input, vlib_cli_command_t * cmd)
248 ip46_address_t dst, src;
249 u16 start_src_port, end_src_port;
250 u16 start_dst_port, end_dst_port;
255 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
258 (input, "src %U", unformat_ip46_address, &src, IP46_TYPE_ANY))
260 else if (unformat (input, "src-port-range %U",
261 unformat_port_range, &start_src_port, &end_src_port))
265 (input, "dst %U", unformat_ip46_address, &dst, IP46_TYPE_ANY))
267 else if (unformat (input, "dst-port-range %U",
268 unformat_port_range, &start_dst_port, &end_dst_port))
270 else if (unformat (input, "interval %d", &interval))
272 else if (unformat (input, "fault-detect"))
274 else if (unformat (input, "disable"))
280 ip46_udp_ping_set_flow (src, dst, start_src_port, end_src_port,
281 start_dst_port, end_dst_port, (u16) interval,
282 fault_det, is_disable);
288 VLIB_CLI_COMMAND (set_udp_ping_command, static) =
290 .path = "set udp-ping",
292 "set udp-ping src <local IPv6 address> src-port-range <local port range> \
293 dst <remote IPv6 address> dst-port-range <destination port range> \
294 interval <time interval in sec for which ping packet will be sent> \
296 .function = set_udp_ping_command_fn,
300 static clib_error_t *
301 show_udp_ping_summary_cmd_fn (vlib_main_t * vm,
302 unformat_input_t * input,
303 vlib_cli_command_t * cmd)
307 ip46_udp_ping_flow *ip46_flow;
308 u16 src_port, dst_port;
309 udp_ping_flow_data *stats;
311 s = format (s, "UDP-Ping data:\n");
313 for (i = 0; i < vec_len (udp_ping_main.ip46_flow); i++)
315 if (pool_is_free_index (udp_ping_main.ip46_flow, i))
318 ip46_flow = pool_elt_at_index (udp_ping_main.ip46_flow, i);
319 s = format (s, "Src: %U, Dst: %U\n",
320 format_ip46_address, &ip46_flow->src, IP46_TYPE_ANY,
321 format_ip46_address, &ip46_flow->dst, IP46_TYPE_ANY);
323 s = format (s, "Start src port: %u, End src port: %u\n",
324 ip46_flow->udp_data.start_src_port,
325 ip46_flow->udp_data.end_src_port);
326 s = format (s, "Start dst port: %u, End dst port: %u\n",
327 ip46_flow->udp_data.start_dst_port,
328 ip46_flow->udp_data.end_dst_port);
329 s = format (s, "Interval: %u\n", ip46_flow->udp_data.interval);
332 for (src_port = ip46_flow->udp_data.start_src_port;
333 src_port <= ip46_flow->udp_data.end_src_port; src_port++)
335 for (dst_port = ip46_flow->udp_data.start_dst_port;
336 dst_port <= ip46_flow->udp_data.end_dst_port; dst_port++)
338 stats = ip46_flow->udp_data.stats + j;
340 format (s, "\nSrc Port - %u, Dst Port - %u, Flow CTX - %u\n",
341 src_port, dst_port, stats->flow_ctx);
343 format (s, "Path State - %s\n",
344 (stats->retry > MAX_PING_RETRIES) ? "Down" : "Up");
345 s = format (s, "Path Data:\n");
346 s = print_analyse_flow (s,
347 &ip46_flow->udp_data.
348 stats[j].analyse_data);
352 s = format (s, "\n\n");
355 vlib_cli_output (vm, "%v", s);
361 VLIB_CLI_COMMAND (show_udp_ping_cmd, static) =
363 .path = "show udp-ping summary",
364 .short_help = "Summary of udp-ping",
365 .function = show_udp_ping_summary_cmd_fn,
370 * @brief UDP-Ping Process node.
371 * @node udp-ping-process
373 * This is process node which wakes up when periodically to send
374 * out udp probe packets for all configured sessions.
376 * @param vm vlib_main_t corresponding to the current thread.
377 * @param node vlib_node_runtime_t data for this node.
378 * @param frame vlib_frame_t whose contents should be dispatched.
382 udp_ping_process (vlib_main_t * vm,
383 vlib_node_runtime_t * rt, vlib_frame_t * f)
386 uword *event_data = 0;
388 ip46_udp_ping_flow *ip46_flow;
392 vec_reset_length (event_data);
393 vlib_process_wait_for_event_or_clock (vm, udp_ping_main.timer_interval);
394 (void) vlib_process_get_events (vm, &event_data);
395 now = vlib_time_now (vm);
397 for (i = 0; i < vec_len (udp_ping_main.ip46_flow); i++)
399 if (pool_is_free_index (udp_ping_main.ip46_flow, i))
402 ip46_flow = pool_elt_at_index (udp_ping_main.ip46_flow, i);
403 if (ip46_flow->udp_data.next_send_time < now)
404 udp_ping_send_ip6_pak (udp_ping_main.vlib_main, ip46_flow);
411 * @brief HopByHop analyse function for udp-ping response.
413 * Walks through all hbh options present in udp-ping response
414 * and uses analyser library for the analysis.
418 udp_ping_analyse_hbh (vlib_buffer_t * b0,
422 ip6_hop_by_hop_option_t * opt0,
423 ip6_hop_by_hop_option_t * limit0, u16 len)
426 ip46_udp_ping_flow *ip46_flow;
428 ioam_analyser_data_t *data;
429 ioam_e2e_option_t *e2e;
430 ioam_trace_option_t *trace;
432 /* If the packet doesnt match UDP session then return */
433 if (PREDICT_FALSE (pool_is_free_index (udp_ping_main.ip46_flow, flow_id)))
436 ip46_flow = udp_ping_main.ip46_flow + flow_id;
437 /* Check port is within range */
438 if (PREDICT_FALSE ((src_port < ip46_flow->udp_data.start_src_port) ||
439 (src_port > ip46_flow->udp_data.end_src_port) ||
440 (dst_port < ip46_flow->udp_data.start_dst_port) ||
441 (dst_port > ip46_flow->udp_data.end_dst_port)))
444 flow_index = (src_port - ip46_flow->udp_data.start_src_port) *
445 (ip46_flow->udp_data.end_dst_port - ip46_flow->udp_data.start_dst_port +
447 flow_index += (dst_port - ip46_flow->udp_data.start_dst_port);
448 data = &(ip46_flow->udp_data.stats[flow_index].analyse_data);
451 data->bytes_counter += len;
453 vnet_buffer (b0)->l2_classify.opaque_index =
454 ip46_flow->udp_data.stats[flow_index].flow_ctx;
456 while (opt0 < limit0)
461 case HBH_OPTION_TYPE_IOAM_TRACE_DATA_LIST:
462 /* Add trace for here as it hasnt been done yet */
463 vnet_buffer (b0)->sw_if_index[VLIB_TX] = ~0;
464 trace = (ioam_trace_option_t *) opt0;
466 (trace->trace_hdr.ioam_trace_type & BIT_LOOPBACK_REPLY))
468 ip6_ioam_analyse_hbh_trace_loopback (data, &trace->trace_hdr,
469 (trace->hdr.length - 2));
472 ip6_hbh_ioam_trace_data_list_handler (b0,
473 vlib_buffer_get_current (b0),
475 (void) ip6_ioam_analyse_hbh_trace (data, &trace->trace_hdr, len,
476 (trace->hdr.length - 2));
478 case HBH_OPTION_TYPE_IOAM_EDGE_TO_EDGE:
479 e2e = (ioam_e2e_option_t *) opt0;
480 (void) ip6_ioam_analyse_hbh_e2e (data, &e2e->e2e_hdr, len);
483 opt0 = (ip6_hop_by_hop_option_t *) ((u8 *) opt0) + 1;
490 opt0 = (ip6_hop_by_hop_option_t *) (((u8 *) opt0) + opt0->length +
491 sizeof (ip6_hop_by_hop_option_t));
493 ip46_flow->udp_data.stats[flow_index].retry = 0;
497 * @brief UDP-Ping request/response handler function.
499 * Checks udp-ping packet type - request/response and handles them.
500 * If not udp-ping packet then, strips off hbh options and enques
501 * packet to protocol registered node to enable next protocol processing.
505 udp_ping_local_analyse (vlib_buffer_t * b0,
507 ip6_hop_by_hop_header_t * hbh0, u16 * next0)
509 ip6_main_t *im = &ip6_main;
510 ip_lookup_main_t *lm = &im->lookup_main;
512 *next0 = UDP_PING_NEXT_IP6_DROP;
514 if (PREDICT_TRUE (hbh0->protocol == IP_PROTOCOL_UDP))
516 ip6_hop_by_hop_option_t *opt0;
517 ip6_hop_by_hop_option_t *limit0;
521 /* Check for udp ping packet */
522 udp0 = (udp_ping_t *) ((u8 *) hbh0 + ((hbh0->length + 1) << 3));
523 opt0 = (ip6_hop_by_hop_option_t *) (hbh0 + 1);
524 if ((udp0->ping_data.probe_marker1 ==
525 clib_host_to_net_u32 (UDP_PING_PROBE_MARKER1)) &&
526 (udp0->ping_data.probe_marker2 ==
527 clib_host_to_net_u32 (UDP_PING_PROBE_MARKER2)))
529 if (udp0->ping_data.msg_type == UDP_PING_PROBE)
531 udp_ping_create_reply_from_probe_ip6 (ip0, hbh0, udp0);
532 /* Skip e2e processing */
533 vnet_buffer (b0)->l2_classify.opaque_index = 0x7FFFFFFF;
534 *next0 = UDP_PING_NEXT_IP6_LOOKUP;
539 opt0 = (ip6_hop_by_hop_option_t *) (hbh0 + 1);
540 limit0 = (ip6_hop_by_hop_option_t *)
541 ((u8 *) hbh0 + ((hbh0->length + 1) << 3));
542 p_len0 = clib_net_to_host_u16 (ip0->payload_length);
543 udp_ping_analyse_hbh (b0,
544 clib_net_to_host_u16 (udp0->
545 ping_data.sender_handle),
546 clib_net_to_host_u16 (udp0->udp.dst_port),
547 clib_net_to_host_u16 (udp0->udp.src_port),
548 opt0, limit0, p_len0);
550 /* UDP Ping packet, so return */
555 /* If next header is SR, then destination may get overwritten to
556 * remote address. So pass it to SR processing as it may be local packet
559 if (PREDICT_FALSE (hbh0->protocol == IPPROTO_IPV6_ROUTE))
562 /* Other case remove hbh-ioam headers */
563 u64 *copy_dst0, *copy_src0;
566 vlib_buffer_advance (b0, (hbh0->length + 1) << 3);
568 new_l0 = clib_net_to_host_u16 (ip0->payload_length) -
569 ((hbh0->length + 1) << 3);
571 ip0->payload_length = clib_host_to_net_u16 (new_l0);
573 ip0->protocol = hbh0->protocol;
575 copy_src0 = (u64 *) ip0;
576 copy_dst0 = copy_src0 + (hbh0->length + 1);
577 copy_dst0[4] = copy_src0[4];
578 copy_dst0[3] = copy_src0[3];
579 copy_dst0[2] = copy_src0[2];
580 copy_dst0[1] = copy_src0[1];
581 copy_dst0[0] = copy_src0[0];
584 *next0 = lm->local_next_by_ip_protocol[hbh0->protocol];
589 * @brief udp ping request/response packet receive node.
590 * @node udp-ping-local
592 * This function receives udp ping request/response packets and process them.
593 * For request packets, response is created and sent.
594 * For response packets, they are analysed and results stored.
596 * @param vm vlib_main_t corresponding to the current thread.
597 * @param node vlib_node_runtime_t data for this node.
598 * @param frame vlib_frame_t whose contents should be dispatched.
600 * @par Graph mechanics: buffer, next index usage
603 * - <code>udp_ping_local_analyse(p0, ip0, hbh0, &next0)</code>
604 * - Checks packet type - request/respnse and process them.
606 * <em>Next Index:</em>
607 * - Dispatches the packet to ip6-lookup/ip6-drop depending on type of packet.
610 udp_ping_local_node_fn (vlib_main_t * vm,
611 vlib_node_runtime_t * node, vlib_frame_t * frame)
613 udp_ping_next_t next_index;
614 u32 *from, *to_next, n_left_from, n_left_to_next;
616 from = vlib_frame_vector_args (frame);
617 n_left_from = frame->n_vectors;
618 next_index = node->cached_next_index;
620 while (n_left_from > 0)
622 vlib_get_next_frame (vm, node, next_index, to_next, n_left_to_next);
624 while (n_left_from >= 4 && n_left_to_next >= 2)
626 vlib_buffer_t *p0, *p1;
627 ip6_header_t *ip0, *ip1;
628 ip6_hop_by_hop_header_t *hbh0, *hbh1;
632 /* Prefetch next iteration. */
634 vlib_buffer_t *p2, *p3;
636 p2 = vlib_get_buffer (vm, from[2]);
637 p3 = vlib_get_buffer (vm, from[3]);
639 vlib_prefetch_buffer_header (p2, LOAD);
640 vlib_prefetch_buffer_header (p3, LOAD);
642 /* Prefetch 3 cache lines as we need to look deep into packet */
643 CLIB_PREFETCH (p2->data, 3 * CLIB_CACHE_LINE_BYTES, STORE);
644 CLIB_PREFETCH (p3->data, 3 * CLIB_CACHE_LINE_BYTES, STORE);
647 pi0 = to_next[0] = from[0];
648 pi1 = to_next[1] = from[1];
654 p0 = vlib_get_buffer (vm, pi0);
655 p1 = vlib_get_buffer (vm, pi1);
657 ip0 = vlib_buffer_get_current (p0);
658 ip1 = vlib_buffer_get_current (p1);
660 hbh0 = (ip6_hop_by_hop_header_t *) (ip0 + 1);
661 hbh1 = (ip6_hop_by_hop_header_t *) (ip1 + 1);
663 udp_ping_local_analyse (p0, ip0, hbh0, &next0);
664 udp_ping_local_analyse (p1, ip1, hbh1, &next1);
666 if (PREDICT_FALSE ((node->flags & VLIB_NODE_FLAG_TRACE)))
668 if (p0->flags & VLIB_BUFFER_IS_TRACED)
670 udp_ping_trace_t *t0 =
671 vlib_add_trace (vm, node, p0, sizeof (*t0));
674 /* Check for udp ping packet */
676 (udp_ping_t *) ((u8 *) hbh0 + ((hbh0->length + 1) << 3));
677 t0->src = ip0->src_address;
678 t0->dst = ip0->dst_address;
679 t0->src_port = clib_net_to_host_u16 (udp0->udp.src_port);
680 t0->dst_port = clib_net_to_host_u16 (udp0->udp.dst_port);
682 clib_net_to_host_u16 (udp0->ping_data.sender_handle);
683 t0->msg_type = udp0->ping_data.msg_type;
684 t0->next_index = next0;
686 if (p1->flags & VLIB_BUFFER_IS_TRACED)
688 udp_ping_trace_t *t1 =
689 vlib_add_trace (vm, node, p1, sizeof (*t1));
692 /* Check for udp ping packet */
694 (udp_ping_t *) ((u8 *) hbh1 + ((hbh1->length + 1) << 3));
695 t1->src = ip1->src_address;
696 t1->dst = ip1->dst_address;
697 t1->src_port = clib_net_to_host_u16 (udp1->udp.src_port);
698 t1->dst_port = clib_net_to_host_u16 (udp1->udp.dst_port);
700 clib_net_to_host_u16 (udp1->ping_data.sender_handle);
701 t1->msg_type = udp1->ping_data.msg_type;
702 t1->next_index = next1;
706 vlib_validate_buffer_enqueue_x2 (vm, node, next_index,
707 to_next, n_left_to_next,
708 pi0, pi1, next0, next1);
711 while (n_left_from > 0 && n_left_to_next > 0)
715 ip6_hop_by_hop_header_t *hbh0;
726 p0 = vlib_get_buffer (vm, pi0);
727 ip0 = vlib_buffer_get_current (p0);
728 hbh0 = (ip6_hop_by_hop_header_t *) (ip0 + 1);
730 udp_ping_local_analyse (p0, ip0, hbh0, &next0);
732 if (PREDICT_FALSE ((node->flags & VLIB_NODE_FLAG_TRACE)))
734 if (p0->flags & VLIB_BUFFER_IS_TRACED)
736 udp_ping_trace_t *t0 =
737 vlib_add_trace (vm, node, p0, sizeof (*t0));
740 /* Check for udp ping packet */
742 (udp_ping_t *) ((u8 *) hbh0 + ((hbh0->length + 1) << 3));
743 t0->src = ip0->src_address;
744 t0->dst = ip0->dst_address;
745 t0->src_port = clib_net_to_host_u16 (udp0->udp.src_port);
746 t0->dst_port = clib_net_to_host_u16 (udp0->udp.dst_port);
748 clib_net_to_host_u16 (udp0->ping_data.sender_handle);
749 t0->msg_type = udp0->ping_data.msg_type;
750 t0->next_index = next0;
754 vlib_validate_buffer_enqueue_x1 (vm, node, next_index,
755 to_next, n_left_to_next,
759 vlib_put_next_frame (vm, node, next_index, n_left_to_next);
762 return frame->n_vectors;
767 * Node for udp-ping-local
769 VLIB_REGISTER_NODE (udp_ping_local, static) =
771 .function = udp_ping_local_node_fn,
772 .name = "udp-ping-local",
773 .vector_size = sizeof (u32),
774 .format_trace = format_udp_ping_trace,
775 .type = VLIB_NODE_TYPE_INTERNAL,
776 .n_next_nodes = UDP_PING_N_NEXT,
779 [UDP_PING_NEXT_DROP] = "error-drop",
780 [UDP_PING_NEXT_PUNT] = "error-punt",
781 [UDP_PING_NEXT_UDP_LOOKUP] = "ip6-udp-lookup",
782 [UDP_PING_NEXT_ICMP] = "ip6-icmp-input",
783 [UDP_PING_NEXT_IP6_LOOKUP] = "ip6-lookup",
784 [UDP_PING_NEXT_IP6_DROP] = "ip6-drop",
789 static clib_error_t *
790 udp_ping_init (vlib_main_t * vm)
792 clib_error_t *error = 0;
794 udp_ping_main.vlib_main = vm;
795 udp_ping_main.vnet_main = vnet_get_main ();
796 udp_ping_main.timer_interval = 1e9;
798 if ((error = vlib_call_init_function (vm, ip_main_init)))
801 ip6_register_protocol (IP_PROTOCOL_IP6_HOP_BY_HOP_OPTIONS,
802 udp_ping_local.index);
806 VLIB_INIT_FUNCTION (udp_ping_init);
809 * fd.io coding-style-patch-verification: ON
812 * eval: (c-set-style "gnu")