blob: 5b548322d2896e34ca847e2b484d855047a9f153 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001/*
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:
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
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.
14 */
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +000015#ifndef __IPSEC_H__
16#define __IPSEC_H__
17
Sergio Gonzalez Monroydb93cd92017-08-26 15:22:05 +010018#include <vnet/ip/ip.h>
19#include <vnet/feature/feature.h>
20
Matus Fabian694265d2016-08-10 01:55:36 -070021#define IPSEC_FLAG_IPSEC_GRE_TUNNEL (1 << 0)
22
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +000023
24#define foreach_ipsec_output_next \
25_(DROP, "error-drop") \
“mukeshyadav1984”430ac932017-11-23 02:39:33 -080026_(ESP_ENCRYPT, "esp-encrypt") \
27_(AH_ENCRYPT, "ah-encrypt")
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +000028
29#define _(v, s) IPSEC_OUTPUT_NEXT_##v,
30typedef enum
31{
32 foreach_ipsec_output_next
33#undef _
34 IPSEC_OUTPUT_N_NEXT,
35} ipsec_output_next_t;
36
37
38#define foreach_ipsec_input_next \
39_(DROP, "error-drop") \
“mukeshyadav1984”430ac932017-11-23 02:39:33 -080040_(ESP_DECRYPT, "esp-decrypt") \
41_(AH_DECRYPT, "ah-decrypt")
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +000042
43#define _(v, s) IPSEC_INPUT_NEXT_##v,
44typedef enum
45{
46 foreach_ipsec_input_next
47#undef _
48 IPSEC_INPUT_N_NEXT,
49} ipsec_input_next_t;
50
51
Ed Warnickecb9cada2015-12-08 15:45:58 -070052#define foreach_ipsec_policy_action \
53 _(0, BYPASS, "bypass") \
54 _(1, DISCARD, "discard") \
55 _(2, RESOLVE, "resolve") \
56 _(3, PROTECT, "protect")
57
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -070058typedef enum
59{
Ed Warnickecb9cada2015-12-08 15:45:58 -070060#define _(v,f,s) IPSEC_POLICY_ACTION_##f = v,
61 foreach_ipsec_policy_action
62#undef _
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -070063 IPSEC_POLICY_N_ACTION,
Ed Warnickecb9cada2015-12-08 15:45:58 -070064} ipsec_policy_action_t;
65
Radu Nicolau6929ea92016-11-29 11:00:30 +000066#define foreach_ipsec_crypto_alg \
67 _(0, NONE, "none") \
68 _(1, AES_CBC_128, "aes-cbc-128") \
69 _(2, AES_CBC_192, "aes-cbc-192") \
70 _(3, AES_CBC_256, "aes-cbc-256") \
Sergio Gonzalez Monroydb93cd92017-08-26 15:22:05 +010071 _(4, AES_CTR_128, "aes-ctr-128") \
72 _(5, AES_CTR_192, "aes-ctr-192") \
73 _(6, AES_CTR_256, "aes-ctr-256") \
74 _(7, AES_GCM_128, "aes-gcm-128") \
75 _(8, AES_GCM_192, "aes-gcm-192") \
“mukeshyadav1984”72454dd2017-11-28 10:52:34 -080076 _(9, AES_GCM_256, "aes-gcm-256") \
77 _(10, DES_CBC, "des-cbc") \
78 _(11, 3DES_CBC, "3des-cbc")
Ed Warnickecb9cada2015-12-08 15:45:58 -070079
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -070080typedef enum
81{
Ed Warnickecb9cada2015-12-08 15:45:58 -070082#define _(v,f,s) IPSEC_CRYPTO_ALG_##f = v,
83 foreach_ipsec_crypto_alg
84#undef _
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -070085 IPSEC_CRYPTO_N_ALG,
Ed Warnickecb9cada2015-12-08 15:45:58 -070086} ipsec_crypto_alg_t;
87
Radu Nicolau6929ea92016-11-29 11:00:30 +000088#define foreach_ipsec_integ_alg \
89 _(0, NONE, "none") \
90 _(1, MD5_96, "md5-96") /* RFC2403 */ \
91 _(2, SHA1_96, "sha1-96") /* RFC2404 */ \
92 _(3, SHA_256_96, "sha-256-96") /* draft-ietf-ipsec-ciph-sha-256-00 */ \
93 _(4, SHA_256_128, "sha-256-128") /* RFC4868 */ \
94 _(5, SHA_384_192, "sha-384-192") /* RFC4868 */ \
Sergio Gonzalez Monroydb93cd92017-08-26 15:22:05 +010095 _(6, SHA_512_256, "sha-512-256") /* RFC4868 */
Ed Warnickecb9cada2015-12-08 15:45:58 -070096
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -070097typedef enum
98{
Ed Warnickecb9cada2015-12-08 15:45:58 -070099#define _(v,f,s) IPSEC_INTEG_ALG_##f = v,
100 foreach_ipsec_integ_alg
101#undef _
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700102 IPSEC_INTEG_N_ALG,
Ed Warnickecb9cada2015-12-08 15:45:58 -0700103} ipsec_integ_alg_t;
104
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700105typedef enum
106{
107 IPSEC_PROTOCOL_AH = 0,
108 IPSEC_PROTOCOL_ESP = 1
Ed Warnickecb9cada2015-12-08 15:45:58 -0700109} ipsec_protocol_t;
110
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700111typedef struct
112{
113 u32 id;
114 u32 spi;
115 ipsec_protocol_t protocol;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700116
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700117 ipsec_crypto_alg_t crypto_alg;
118 u8 crypto_key_len;
119 u8 crypto_key[128];
Ed Warnickecb9cada2015-12-08 15:45:58 -0700120
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700121 ipsec_integ_alg_t integ_alg;
122 u8 integ_key_len;
123 u8 integ_key[128];
Ed Warnickecb9cada2015-12-08 15:45:58 -0700124
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700125 u8 use_esn;
126 u8 use_anti_replay;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700127
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700128 u8 is_tunnel;
129 u8 is_tunnel_ip6;
Klement Sekera4b089f22018-04-17 18:04:57 +0200130 u8 udp_encap;
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700131 ip46_address_t tunnel_src_addr;
132 ip46_address_t tunnel_dst_addr;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700133
Radu Nicolau6929ea92016-11-29 11:00:30 +0000134 u32 salt;
135
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700136 /* runtime */
137 u32 seq;
138 u32 seq_hi;
139 u32 last_seq;
140 u32 last_seq_hi;
141 u64 replay_window;
Radu Nicolaucb33dc22017-02-16 16:49:46 +0000142
143 /*lifetime data */
144 u64 total_data_size;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700145} ipsec_sa_t;
146
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700147typedef struct
148{
Ed Warnickecb9cada2015-12-08 15:45:58 -0700149 ip46_address_t start, stop;
150} ip46_address_range_t;
151
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700152typedef struct
153{
Ed Warnickecb9cada2015-12-08 15:45:58 -0700154 u16 start, stop;
155} port_range_t;
156
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700157typedef struct
158{
Ed Warnickecb9cada2015-12-08 15:45:58 -0700159 u8 is_add;
160 u8 esn;
161 u8 anti_replay;
162 ip4_address_t local_ip, remote_ip;
163 u32 local_spi;
164 u32 remote_spi;
Matthew Smith2838a232016-06-21 16:05:09 -0500165 ipsec_crypto_alg_t crypto_alg;
166 u8 local_crypto_key_len;
167 u8 local_crypto_key[128];
168 u8 remote_crypto_key_len;
169 u8 remote_crypto_key[128];
170 ipsec_integ_alg_t integ_alg;
171 u8 local_integ_key_len;
172 u8 local_integ_key[128];
173 u8 remote_integ_key_len;
174 u8 remote_integ_key[128];
Matthew Smith8e1039a2018-04-12 07:32:56 -0500175 u8 renumber;
176 u32 show_instance;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700177} ipsec_add_del_tunnel_args_t;
178
Matus Fabian694265d2016-08-10 01:55:36 -0700179typedef struct
180{
181 u8 is_add;
182 u32 local_sa_id;
183 u32 remote_sa_id;
184 ip4_address_t local_ip;
185 ip4_address_t remote_ip;
186} ipsec_add_del_ipsec_gre_tunnel_args_t;
187
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700188typedef enum
189{
Ed Warnickecb9cada2015-12-08 15:45:58 -0700190 IPSEC_IF_SET_KEY_TYPE_NONE,
191 IPSEC_IF_SET_KEY_TYPE_LOCAL_CRYPTO,
192 IPSEC_IF_SET_KEY_TYPE_REMOTE_CRYPTO,
193 IPSEC_IF_SET_KEY_TYPE_LOCAL_INTEG,
194 IPSEC_IF_SET_KEY_TYPE_REMOTE_INTEG,
195} ipsec_if_set_key_type_t;
196
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700197typedef struct
198{
199 u32 id;
200 i32 priority;
201 u8 is_outbound;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700202
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700203 // Selector
204 u8 is_ipv6;
205 ip46_address_range_t laddr;
206 ip46_address_range_t raddr;
207 u8 protocol;
208 port_range_t lport;
209 port_range_t rport;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700210
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700211 // Policy
212 u8 policy;
213 u32 sa_id;
214 u32 sa_index;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700215
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700216 // Counter
217 vlib_counter_t counter;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700218} ipsec_policy_t;
219
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700220typedef struct
221{
222 u32 id;
223 /* pool of policies */
224 ipsec_policy_t *policies;
225 /* vectors of policy indices */
226 u32 *ipv4_outbound_policies;
227 u32 *ipv6_outbound_policies;
228 u32 *ipv4_inbound_protect_policy_indices;
229 u32 *ipv4_inbound_policy_discard_and_bypass_indices;
230 u32 *ipv6_inbound_protect_policy_indices;
231 u32 *ipv6_inbound_policy_discard_and_bypass_indices;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700232} ipsec_spd_t;
233
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700234typedef struct
235{
Ed Warnickecb9cada2015-12-08 15:45:58 -0700236 u32 spd_index;
237} ip4_ipsec_config_t;
238
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700239typedef struct
240{
Ed Warnickecb9cada2015-12-08 15:45:58 -0700241 u32 spd_index;
242} ip6_ipsec_config_t;
243
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700244typedef struct
245{
Dave Baracheb987d32018-05-03 08:26:39 -0400246 /* Required for pool_get_aligned */
247 CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700248 u32 input_sa_index;
249 u32 output_sa_index;
250 u32 hw_if_index;
Matthew Smith8e1039a2018-04-12 07:32:56 -0500251 u32 show_instance;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700252} ipsec_tunnel_if_t;
253
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700254typedef struct
255{
Sergio Gonzalez Monroydb93cd92017-08-26 15:22:05 +0100256 clib_error_t *(*add_del_sa_sess_cb) (u32 sa_index, u8 is_add);
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +0000257 clib_error_t *(*check_support_cb) (ipsec_sa_t * sa);
258} ipsec_main_callbacks_t;
259
260typedef struct
261{
Ed Warnickecb9cada2015-12-08 15:45:58 -0700262 /* pool of tunnel instances */
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700263 ipsec_spd_t *spds;
264 ipsec_sa_t *sad;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700265
266 /* pool of tunnel interfaces */
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700267 ipsec_tunnel_if_t *tunnel_interfaces;
268 u32 *free_tunnel_if_indices;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700269
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700270 u32 **empty_buffers;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700271
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700272 uword *tunnel_index_by_key;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700273
274 /* convenience */
275 vlib_main_t *vlib_main;
276 vnet_main_t *vnet_main;
277
278 /* next node indices */
279 u32 feature_next_node_index[32];
280
281 /* hashes */
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700282 uword *spd_index_by_spd_id;
283 uword *spd_index_by_sw_if_index;
284 uword *sa_index_by_sa_id;
285 uword *ipsec_if_pool_index_by_key;
Matthew Smith8e1039a2018-04-12 07:32:56 -0500286 uword *ipsec_if_real_dev_by_show_dev;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700287
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +0000288 /* node indeces */
Ed Warnickecb9cada2015-12-08 15:45:58 -0700289 u32 error_drop_node_index;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700290 u32 esp_encrypt_node_index;
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +0000291 u32 esp_decrypt_node_index;
“mukeshyadav1984”430ac932017-11-23 02:39:33 -0800292 u32 ah_encrypt_node_index;
293 u32 ah_decrypt_node_index;
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +0000294 /* next node indeces */
295 u32 esp_encrypt_next_index;
296 u32 esp_decrypt_next_index;
“mukeshyadav1984”430ac932017-11-23 02:39:33 -0800297 u32 ah_encrypt_next_index;
298 u32 ah_decrypt_next_index;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700299
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +0000300 /* callbacks */
301 ipsec_main_callbacks_t cb;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700302} ipsec_main_t;
303
Dave Wallace71612d62017-10-24 01:32:41 -0400304extern ipsec_main_t ipsec_main;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700305
Jean-Mickael Guerin8941ec22016-03-04 14:14:21 +0100306extern vlib_node_registration_t esp_encrypt_node;
307extern vlib_node_registration_t esp_decrypt_node;
“mukeshyadav1984”430ac932017-11-23 02:39:33 -0800308extern vlib_node_registration_t ah_encrypt_node;
309extern vlib_node_registration_t ah_decrypt_node;
Jean-Mickael Guerin8941ec22016-03-04 14:14:21 +0100310extern vlib_node_registration_t ipsec_if_output_node;
311extern vlib_node_registration_t ipsec_if_input_node;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700312
313
314/*
315 * functions
316 */
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700317int ipsec_set_interface_spd (vlib_main_t * vm, u32 sw_if_index, u32 spd_id,
318 int is_add);
319int ipsec_add_del_spd (vlib_main_t * vm, u32 spd_id, int is_add);
320int ipsec_add_del_policy (vlib_main_t * vm, ipsec_policy_t * policy,
321 int is_add);
Klement Sekera4b089f22018-04-17 18:04:57 +0200322int ipsec_add_del_sa (vlib_main_t * vm, ipsec_sa_t * new_sa, int is_add,
323 u8 udp_encap);
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700324int ipsec_set_sa_key (vlib_main_t * vm, ipsec_sa_t * sa_update);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700325
Matus Fabian694265d2016-08-10 01:55:36 -0700326u32 ipsec_get_sa_index_by_sa_id (u32 sa_id);
Matthew Smithca514fd2017-10-12 12:06:59 -0500327u8 ipsec_is_sa_used (u32 sa_index);
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700328u8 *format_ipsec_if_output_trace (u8 * s, va_list * args);
329u8 *format_ipsec_policy_action (u8 * s, va_list * args);
330u8 *format_ipsec_crypto_alg (u8 * s, va_list * args);
331u8 *format_ipsec_integ_alg (u8 * s, va_list * args);
332u8 *format_ipsec_replay_window (u8 * s, va_list * args);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700333uword unformat_ipsec_policy_action (unformat_input_t * input, va_list * args);
334uword unformat_ipsec_crypto_alg (unformat_input_t * input, va_list * args);
335uword unformat_ipsec_integ_alg (unformat_input_t * input, va_list * args);
336
Matthew Smithe04d09d2017-05-14 21:47:18 -0500337int ipsec_add_del_tunnel_if_internal (vnet_main_t * vnm,
338 ipsec_add_del_tunnel_args_t * args,
339 u32 * sw_if_index);
Matthew Smith2838a232016-06-21 16:05:09 -0500340int ipsec_add_del_tunnel_if (ipsec_add_del_tunnel_args_t * args);
Matus Fabian694265d2016-08-10 01:55:36 -0700341int ipsec_add_del_ipsec_gre_tunnel (vnet_main_t * vnm,
342 ipsec_add_del_ipsec_gre_tunnel_args_t *
343 args);
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700344int ipsec_set_interface_key (vnet_main_t * vnm, u32 hw_if_index,
345 ipsec_if_set_key_type_t type, u8 alg, u8 * key);
Matthew Smithca514fd2017-10-12 12:06:59 -0500346int ipsec_set_interface_sa (vnet_main_t * vnm, u32 hw_if_index, u32 sa_id,
347 u8 is_outbound);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700348
349
350/*
351 * inline functions
352 */
353
354always_inline void
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700355ipsec_alloc_empty_buffers (vlib_main_t * vm, ipsec_main_t * im)
Ed Warnickecb9cada2015-12-08 15:45:58 -0700356{
Damjan Marion586afd72017-04-05 19:18:20 +0200357 u32 thread_index = vlib_get_thread_index ();
358 uword l = vec_len (im->empty_buffers[thread_index]);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700359 uword n_alloc = 0;
360
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700361 if (PREDICT_FALSE (l < VLIB_FRAME_SIZE))
Ed Warnickecb9cada2015-12-08 15:45:58 -0700362 {
Damjan Marion586afd72017-04-05 19:18:20 +0200363 if (!im->empty_buffers[thread_index])
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700364 {
Damjan Marion586afd72017-04-05 19:18:20 +0200365 vec_alloc (im->empty_buffers[thread_index], 2 * VLIB_FRAME_SIZE);
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700366 }
Ed Warnickecb9cada2015-12-08 15:45:58 -0700367
Damjan Marion586afd72017-04-05 19:18:20 +0200368 n_alloc = vlib_buffer_alloc (vm, im->empty_buffers[thread_index] + l,
Damjan Marion67655492016-11-15 12:50:28 +0100369 2 * VLIB_FRAME_SIZE - l);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700370
Damjan Marion586afd72017-04-05 19:18:20 +0200371 _vec_len (im->empty_buffers[thread_index]) = l + n_alloc;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700372 }
373}
374
Matus Fabian08a6f012016-11-15 06:08:51 -0800375static_always_inline u32
376get_next_output_feature_node_index (vlib_buffer_t * b,
377 vlib_node_runtime_t * nr)
Ed Warnickecb9cada2015-12-08 15:45:58 -0700378{
Matus Fabian08a6f012016-11-15 06:08:51 -0800379 u32 next;
380 u32 sw_if_index = vnet_buffer (b)->sw_if_index[VLIB_TX];
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700381 vlib_main_t *vm = vlib_get_main ();
Matus Fabian08a6f012016-11-15 06:08:51 -0800382 vlib_node_t *node = vlib_get_node (vm, nr->node_index);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700383
Matus Fabian08a6f012016-11-15 06:08:51 -0800384 vnet_feature_next (sw_if_index, &next, b);
385 return node->next_nodes[next];
Ed Warnickecb9cada2015-12-08 15:45:58 -0700386}
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700387
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000388#endif /* __IPSEC_H__ */
389
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700390/*
391 * fd.io coding-style-patch-verification: ON
392 *
393 * Local Variables:
394 * eval: (c-set-style "gnu")
395 * End:
396 */