blob: ed1248942e31c502576f986eecc1a1e626c5797f [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001/*
2 * ipsec_if.c : IPSec interface support
3 *
4 * Copyright (c) 2015 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:
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed 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.
16 */
17
18#include <vnet/vnet.h>
19#include <vnet/api_errno.h>
20#include <vnet/ip/ip.h>
21
22#include <vnet/ipsec/ipsec.h>
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +000023#include <vnet/ipsec/esp.h>
Ed Warnickecb9cada2015-12-08 15:45:58 -070024
Matthew Smith2838a232016-06-21 16:05:09 -050025void vl_api_rpc_call_main_thread (void *fp, u8 * data, u32 data_length);
26
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -070027static u8 *
28format_ipsec_name (u8 * s, va_list * args)
Ed Warnickecb9cada2015-12-08 15:45:58 -070029{
30 u32 dev_instance = va_arg (*args, u32);
31 return format (s, "ipsec%d", dev_instance);
32}
33
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -070034static uword
35dummy_interface_tx (vlib_main_t * vm,
36 vlib_node_runtime_t * node, vlib_frame_t * frame)
Ed Warnickecb9cada2015-12-08 15:45:58 -070037{
38 clib_warning ("you shouldn't be here, leaking buffers...");
39 return frame->n_vectors;
40}
41
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +000042static clib_error_t *
43ipsec_admin_up_down_function (vnet_main_t * vnm, u32 hw_if_index, u32 flags)
44{
45 ipsec_main_t *im = &ipsec_main;
46 clib_error_t *err = 0;
47 ipsec_tunnel_if_t *t;
48 vnet_hw_interface_t *hi;
49 ipsec_sa_t *sa;
50
51 hi = vnet_get_hw_interface (vnm, hw_if_index);
52 if (flags & VNET_SW_INTERFACE_FLAG_ADMIN_UP)
53 {
54 t = pool_elt_at_index (im->tunnel_interfaces, hi->hw_instance);
55 ASSERT (im->cb.check_support_cb);
56 sa = pool_elt_at_index (im->sad, t->input_sa_index);
57 err = im->cb.check_support_cb (sa);
58 if (err)
59 return err;
60
61 sa = pool_elt_at_index (im->sad, t->output_sa_index);
62 err = im->cb.check_support_cb (sa);
63 if (err)
64 return err;
65
Radu Nicolau3f903392017-01-30 14:33:39 +000066 vnet_hw_interface_set_flags (vnm, hw_if_index,
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +000067 VNET_HW_INTERFACE_FLAG_LINK_UP);
68 }
69 else
Radu Nicolau3f903392017-01-30 14:33:39 +000070 vnet_hw_interface_set_flags (vnm, hw_if_index, 0 /* down */ );
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +000071
72 return /* no error */ 0;
73}
74
Neale Rannsb80c5362016-10-08 13:03:40 +010075/* *INDENT-OFF* */
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -070076VNET_DEVICE_CLASS (ipsec_device_class, static) =
77{
Neale Rannsb80c5362016-10-08 13:03:40 +010078 .name = "IPSec",
79 .format_device_name = format_ipsec_name,
80 .format_tx_trace = format_ipsec_if_output_trace,
81 .tx_function = dummy_interface_tx,
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +000082 .admin_up_down_function = ipsec_admin_up_down_function,
Neale Rannsb80c5362016-10-08 13:03:40 +010083};
84/* *INDENT-ON* */
Ed Warnickecb9cada2015-12-08 15:45:58 -070085
Neale Rannsb80c5362016-10-08 13:03:40 +010086/* *INDENT-OFF* */
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -070087VNET_HW_INTERFACE_CLASS (ipsec_hw_class) =
88{
Neale Rannsb80c5362016-10-08 13:03:40 +010089 .name = "IPSec",
90 .build_rewrite = default_build_rewrite,
91};
92/* *INDENT-ON* */
Matthew Smith2838a232016-06-21 16:05:09 -050093
94static int
95ipsec_add_del_tunnel_if_internal (vnet_main_t * vnm,
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -070096 ipsec_add_del_tunnel_args_t * args);
Matthew Smith2838a232016-06-21 16:05:09 -050097
98static int
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -070099ipsec_add_del_tunnel_if_rpc_callback (ipsec_add_del_tunnel_args_t * a)
Matthew Smith2838a232016-06-21 16:05:09 -0500100{
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700101 vnet_main_t *vnm = vnet_get_main ();
Damjan Marion586afd72017-04-05 19:18:20 +0200102 ASSERT (vlib_get_thread_index () == 0);
Matthew Smith2838a232016-06-21 16:05:09 -0500103
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700104 return ipsec_add_del_tunnel_if_internal (vnm, a);
Matthew Smith2838a232016-06-21 16:05:09 -0500105}
106
107int
108ipsec_add_del_tunnel_if (ipsec_add_del_tunnel_args_t * args)
109{
110 vl_api_rpc_call_main_thread (ipsec_add_del_tunnel_if_rpc_callback,
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700111 (u8 *) args, sizeof (*args));
Matthew Smith2838a232016-06-21 16:05:09 -0500112 return 0;
113}
114
115int
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700116ipsec_add_del_tunnel_if_internal (vnet_main_t * vnm,
117 ipsec_add_del_tunnel_args_t * args)
Ed Warnickecb9cada2015-12-08 15:45:58 -0700118{
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700119 ipsec_tunnel_if_t *t;
120 ipsec_main_t *im = &ipsec_main;
121 vnet_hw_interface_t *hi;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700122 u32 hw_if_index = ~0;
123 uword *p;
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700124 ipsec_sa_t *sa;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700125
126 u64 key = (u64) args->remote_ip.as_u32 << 32 | (u64) args->remote_spi;
127 p = hash_get (im->ipsec_if_pool_index_by_key, key);
128
129 if (args->is_add)
130 {
131 /* check if same src/dst pair exists */
132 if (p)
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700133 return VNET_API_ERROR_INVALID_VALUE;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700134
135 pool_get_aligned (im->tunnel_interfaces, t, CLIB_CACHE_LINE_BYTES);
136 memset (t, 0, sizeof (*t));
137
138 pool_get (im->sad, sa);
139 memset (sa, 0, sizeof (*sa));
140 t->input_sa_index = sa - im->sad;
141 sa->spi = args->remote_spi;
142 sa->tunnel_src_addr.ip4.as_u32 = args->remote_ip.as_u32;
143 sa->tunnel_dst_addr.ip4.as_u32 = args->local_ip.as_u32;
144 sa->is_tunnel = 1;
145 sa->use_esn = args->esn;
146 sa->use_anti_replay = args->anti_replay;
Matthew Smith2838a232016-06-21 16:05:09 -0500147 sa->integ_alg = args->integ_alg;
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700148 if (args->remote_integ_key_len <= sizeof (args->remote_integ_key))
149 {
150 sa->integ_key_len = args->remote_integ_key_len;
151 clib_memcpy (sa->integ_key, args->remote_integ_key,
152 args->remote_integ_key_len);
153 }
Matthew Smith2838a232016-06-21 16:05:09 -0500154 sa->crypto_alg = args->crypto_alg;
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700155 if (args->remote_crypto_key_len <= sizeof (args->remote_crypto_key))
156 {
157 sa->crypto_key_len = args->remote_crypto_key_len;
158 clib_memcpy (sa->crypto_key, args->remote_crypto_key,
159 args->remote_crypto_key_len);
160 }
Ed Warnickecb9cada2015-12-08 15:45:58 -0700161
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +0000162 if (im->cb.add_del_sa_sess_cb &&
163 im->cb.add_del_sa_sess_cb (t->input_sa_index, args->is_add) < 0)
164 return VNET_API_ERROR_SYSCALL_ERROR_1;
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000165
Ed Warnickecb9cada2015-12-08 15:45:58 -0700166 pool_get (im->sad, sa);
167 memset (sa, 0, sizeof (*sa));
168 t->output_sa_index = sa - im->sad;
169 sa->spi = args->local_spi;
170 sa->tunnel_src_addr.ip4.as_u32 = args->local_ip.as_u32;
171 sa->tunnel_dst_addr.ip4.as_u32 = args->remote_ip.as_u32;
172 sa->is_tunnel = 1;
173 sa->seq = 1;
174 sa->use_esn = args->esn;
175 sa->use_anti_replay = args->anti_replay;
Matthew Smith2838a232016-06-21 16:05:09 -0500176 sa->integ_alg = args->integ_alg;
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700177 if (args->local_integ_key_len <= sizeof (args->local_integ_key))
178 {
179 sa->integ_key_len = args->local_integ_key_len;
180 clib_memcpy (sa->integ_key, args->local_integ_key,
181 args->local_integ_key_len);
182 }
Matthew Smith2838a232016-06-21 16:05:09 -0500183 sa->crypto_alg = args->crypto_alg;
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700184 if (args->local_crypto_key_len <= sizeof (args->local_crypto_key))
185 {
186 sa->crypto_key_len = args->local_crypto_key_len;
187 clib_memcpy (sa->crypto_key, args->local_crypto_key,
188 args->local_crypto_key_len);
189 }
Ed Warnickecb9cada2015-12-08 15:45:58 -0700190
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +0000191 if (im->cb.add_del_sa_sess_cb &&
192 im->cb.add_del_sa_sess_cb (t->output_sa_index, args->is_add) < 0)
193 return VNET_API_ERROR_SYSCALL_ERROR_1;
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000194
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700195 hash_set (im->ipsec_if_pool_index_by_key, key,
196 t - im->tunnel_interfaces);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700197
198 if (vec_len (im->free_tunnel_if_indices) > 0)
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700199 {
200 hw_if_index =
201 im->free_tunnel_if_indices[vec_len (im->free_tunnel_if_indices) -
202 1];
203 _vec_len (im->free_tunnel_if_indices) -= 1;
204 }
Ed Warnickecb9cada2015-12-08 15:45:58 -0700205 else
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700206 {
207 hw_if_index =
208 vnet_register_interface (vnm, ipsec_device_class.index,
209 t - im->tunnel_interfaces,
210 ipsec_hw_class.index,
211 t - im->tunnel_interfaces);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700212
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700213 hi = vnet_get_hw_interface (vnm, hw_if_index);
214 hi->output_node_index = ipsec_if_output_node.index;
215 }
Ed Warnickecb9cada2015-12-08 15:45:58 -0700216 t->hw_if_index = hw_if_index;
217
218 /*1st interface, register protocol */
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700219 if (pool_elts (im->tunnel_interfaces) == 1)
220 ip4_register_protocol (IP_PROTOCOL_IPSEC_ESP,
221 ipsec_if_input_node.index);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700222
223 return hw_if_index;
224 }
225 else
226 {
227 /* check if exists */
228 if (!p)
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700229 return VNET_API_ERROR_INVALID_VALUE;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700230
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700231 t = pool_elt_at_index (im->tunnel_interfaces, p[0]);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700232 hi = vnet_get_hw_interface (vnm, t->hw_if_index);
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700233 vnet_sw_interface_set_flags (vnm, hi->sw_if_index, 0); /* admin down */
Ed Warnickecb9cada2015-12-08 15:45:58 -0700234 vec_add1 (im->free_tunnel_if_indices, t->hw_if_index);
235
236 /* delete input and output SA */
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700237 sa = pool_elt_at_index (im->sad, t->input_sa_index);
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000238
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +0000239 if (im->cb.add_del_sa_sess_cb &&
240 im->cb.add_del_sa_sess_cb (t->input_sa_index, args->is_add) < 0)
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000241 return VNET_API_ERROR_SYSCALL_ERROR_1;
242
Ed Warnickecb9cada2015-12-08 15:45:58 -0700243 pool_put (im->sad, sa);
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000244
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700245 sa = pool_elt_at_index (im->sad, t->output_sa_index);
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000246
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +0000247 if (im->cb.add_del_sa_sess_cb &&
248 im->cb.add_del_sa_sess_cb (t->output_sa_index, args->is_add) < 0)
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000249 return VNET_API_ERROR_SYSCALL_ERROR_1;
250
Ed Warnickecb9cada2015-12-08 15:45:58 -0700251 pool_put (im->sad, sa);
252
253 hash_unset (im->ipsec_if_pool_index_by_key, key);
254 pool_put (im->tunnel_interfaces, t);
255 }
256 return 0;
257}
258
259int
Matus Fabian694265d2016-08-10 01:55:36 -0700260ipsec_add_del_ipsec_gre_tunnel (vnet_main_t * vnm,
261 ipsec_add_del_ipsec_gre_tunnel_args_t * args)
262{
263 ipsec_tunnel_if_t *t = 0;
264 ipsec_main_t *im = &ipsec_main;
265 uword *p;
266 ipsec_sa_t *sa;
267 u64 key;
268 u32 isa, osa;
269
270 p = hash_get (im->sa_index_by_sa_id, args->local_sa_id);
271 if (!p)
272 return VNET_API_ERROR_INVALID_VALUE;
273 isa = p[0];
274
275 p = hash_get (im->sa_index_by_sa_id, args->remote_sa_id);
276 if (!p)
277 return VNET_API_ERROR_INVALID_VALUE;
278 osa = p[0];
279 sa = pool_elt_at_index (im->sad, p[0]);
280
281 if (sa->is_tunnel)
282 key = (u64) sa->tunnel_dst_addr.ip4.as_u32 << 32 | (u64) sa->spi;
283 else
284 key = (u64) args->remote_ip.as_u32 << 32 | (u64) sa->spi;
285
286 p = hash_get (im->ipsec_if_pool_index_by_key, key);
287
288 if (args->is_add)
289 {
290 /* check if same src/dst pair exists */
291 if (p)
292 return VNET_API_ERROR_INVALID_VALUE;
293
294 pool_get_aligned (im->tunnel_interfaces, t, CLIB_CACHE_LINE_BYTES);
295 memset (t, 0, sizeof (*t));
296
297 t->input_sa_index = isa;
298 t->output_sa_index = osa;
299 t->hw_if_index = ~0;
300 hash_set (im->ipsec_if_pool_index_by_key, key,
301 t - im->tunnel_interfaces);
302
303 /*1st interface, register protocol */
304 if (pool_elts (im->tunnel_interfaces) == 1)
305 ip4_register_protocol (IP_PROTOCOL_IPSEC_ESP,
306 ipsec_if_input_node.index);
307 }
308 else
309 {
310 /* check if exists */
311 if (!p)
312 return VNET_API_ERROR_INVALID_VALUE;
313
314 t = pool_elt_at_index (im->tunnel_interfaces, p[0]);
315 hash_unset (im->ipsec_if_pool_index_by_key, key);
316 pool_put (im->tunnel_interfaces, t);
317 }
318 return 0;
319}
320
321int
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700322ipsec_set_interface_key (vnet_main_t * vnm, u32 hw_if_index,
323 ipsec_if_set_key_type_t type, u8 alg, u8 * key)
Ed Warnickecb9cada2015-12-08 15:45:58 -0700324{
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700325 ipsec_main_t *im = &ipsec_main;
326 vnet_hw_interface_t *hi;
327 ipsec_tunnel_if_t *t;
328 ipsec_sa_t *sa;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700329
330 hi = vnet_get_hw_interface (vnm, hw_if_index);
331 t = pool_elt_at_index (im->tunnel_interfaces, hi->dev_instance);
332
333 if (type == IPSEC_IF_SET_KEY_TYPE_LOCAL_CRYPTO)
334 {
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700335 sa = pool_elt_at_index (im->sad, t->output_sa_index);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700336 sa->crypto_alg = alg;
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700337 sa->crypto_key_len = vec_len (key);
338 clib_memcpy (sa->crypto_key, key, vec_len (key));
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000339
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +0000340 if (im->cb.add_del_sa_sess_cb &&
341 im->cb.add_del_sa_sess_cb (t->output_sa_index, 0) < 0)
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000342 return VNET_API_ERROR_SYSCALL_ERROR_1;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700343 }
344 else if (type == IPSEC_IF_SET_KEY_TYPE_LOCAL_INTEG)
345 {
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700346 sa = pool_elt_at_index (im->sad, t->output_sa_index);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700347 sa->integ_alg = alg;
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700348 sa->integ_key_len = vec_len (key);
349 clib_memcpy (sa->integ_key, key, vec_len (key));
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000350
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +0000351 if (im->cb.add_del_sa_sess_cb &&
352 im->cb.add_del_sa_sess_cb (t->output_sa_index, 0) < 0)
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000353 return VNET_API_ERROR_SYSCALL_ERROR_1;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700354 }
355 else if (type == IPSEC_IF_SET_KEY_TYPE_REMOTE_CRYPTO)
356 {
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700357 sa = pool_elt_at_index (im->sad, t->input_sa_index);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700358 sa->crypto_alg = alg;
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700359 sa->crypto_key_len = vec_len (key);
360 clib_memcpy (sa->crypto_key, key, vec_len (key));
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000361
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +0000362 if (im->cb.add_del_sa_sess_cb &&
363 im->cb.add_del_sa_sess_cb (t->input_sa_index, 0) < 0)
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000364 return VNET_API_ERROR_SYSCALL_ERROR_1;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700365 }
366 else if (type == IPSEC_IF_SET_KEY_TYPE_REMOTE_INTEG)
367 {
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700368 sa = pool_elt_at_index (im->sad, t->input_sa_index);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700369 sa->integ_alg = alg;
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700370 sa->integ_key_len = vec_len (key);
371 clib_memcpy (sa->integ_key, key, vec_len (key));
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000372
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +0000373 if (im->cb.add_del_sa_sess_cb &&
374 im->cb.add_del_sa_sess_cb (t->input_sa_index, 0) < 0)
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +0000375 return VNET_API_ERROR_SYSCALL_ERROR_1;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700376 }
377 else
378 return VNET_API_ERROR_INVALID_VALUE;
379
380 return 0;
381}
382
383
384clib_error_t *
385ipsec_tunnel_if_init (vlib_main_t * vm)
386{
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700387 ipsec_main_t *im = &ipsec_main;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700388
389 im->ipsec_if_pool_index_by_key = hash_create (0, sizeof (uword));
390
391 return 0;
392}
393
394VLIB_INIT_FUNCTION (ipsec_tunnel_if_init);
395
Keith Burns (alagalah)166a9d42016-08-06 11:00:56 -0700396
397/*
398 * fd.io coding-style-patch-verification: ON
399 *
400 * Local Variables:
401 * eval: (c-set-style "gnu")
402 * End:
403 */