2 * Copyright (c) 2015-2016 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 <vlibmemory/api.h>
18 #include <vnet/session/application.h>
19 #include <vnet/session/application_interface.h>
20 #include <vnet/session/session_rules_table.h>
22 #include <vnet/vnet_msg_enum.h>
24 #define vl_typedefs /* define message structures */
25 #include <vnet/vnet_all_api_h.h>
28 #define vl_endianfun /* define message structures */
29 #include <vnet/vnet_all_api_h.h>
32 /* instantiate all the print functions we know about */
33 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__)
35 #include <vnet/vnet_all_api_h.h>
38 #include <vlibapi/api_helper_macros.h>
40 #define foreach_session_api_msg \
41 _(MAP_ANOTHER_SEGMENT_REPLY, map_another_segment_reply) \
42 _(APPLICATION_ATTACH, application_attach) \
43 _(APPLICATION_DETACH, application_detach) \
44 _(BIND_URI, bind_uri) \
45 _(UNBIND_URI, unbind_uri) \
46 _(CONNECT_URI, connect_uri) \
47 _(DISCONNECT_SESSION, disconnect_session) \
48 _(DISCONNECT_SESSION_REPLY, disconnect_session_reply) \
49 _(ACCEPT_SESSION_REPLY, accept_session_reply) \
50 _(RESET_SESSION_REPLY, reset_session_reply) \
51 _(BIND_SOCK, bind_sock) \
52 _(UNBIND_SOCK, unbind_sock) \
53 _(CONNECT_SOCK, connect_sock) \
54 _(SESSION_ENABLE_DISABLE, session_enable_disable) \
55 _(APP_NAMESPACE_ADD_DEL, app_namespace_add_del) \
56 _(SESSION_RULE_ADD_DEL, session_rule_add_del) \
59 send_add_segment_callback (u32 api_client_index, const u8 * segment_name,
62 vl_api_map_another_segment_t *mp;
63 unix_shared_memory_queue_t *q;
65 q = vl_api_client_index_to_input_queue (api_client_index);
70 mp = vl_msg_api_alloc (sizeof (*mp));
71 memset (mp, 0, sizeof (*mp));
72 mp->_vl_msg_id = clib_host_to_net_u16 (VL_API_MAP_ANOTHER_SEGMENT);
73 mp->segment_size = segment_size;
74 strncpy ((char *) mp->segment_name, (char *) segment_name,
75 sizeof (mp->segment_name) - 1);
77 vl_msg_api_send_shmem (q, (u8 *) & mp);
83 send_session_accept_callback (stream_session_t * s)
85 vl_api_accept_session_t *mp;
86 unix_shared_memory_queue_t *q, *vpp_queue;
87 application_t *server = application_get (s->app_index);
88 transport_connection_t *tc;
89 transport_proto_vft_t *tp_vft;
90 stream_session_t *listener;
92 q = vl_api_client_index_to_input_queue (server->api_client_index);
93 vpp_queue = session_manager_get_vpp_event_queue (s->thread_index);
98 mp = vl_msg_api_alloc (sizeof (*mp));
99 memset (mp, 0, sizeof (*mp));
101 mp->_vl_msg_id = clib_host_to_net_u16 (VL_API_ACCEPT_SESSION);
102 mp->context = server->index;
103 listener = listen_session_get (s->session_type, s->listener_index);
104 tp_vft = transport_protocol_get_vft (s->session_type);
105 tc = tp_vft->get_connection (s->connection_index, s->thread_index);
106 mp->listener_handle = listen_session_get_handle (listener);
107 mp->handle = session_handle (s);
108 mp->server_rx_fifo = pointer_to_uword (s->server_rx_fifo);
109 mp->server_tx_fifo = pointer_to_uword (s->server_tx_fifo);
110 mp->vpp_event_queue_address = pointer_to_uword (vpp_queue);
111 mp->port = tc->rmt_port;
112 mp->is_ip4 = tc->is_ip4;
113 clib_memcpy (&mp->ip, &tc->rmt_ip, sizeof (tc->rmt_ip));
114 vl_msg_api_send_shmem (q, (u8 *) & mp);
120 send_session_disconnect_callback (stream_session_t * s)
122 vl_api_disconnect_session_t *mp;
123 unix_shared_memory_queue_t *q;
124 application_t *app = application_get (s->app_index);
126 q = vl_api_client_index_to_input_queue (app->api_client_index);
131 mp = vl_msg_api_alloc (sizeof (*mp));
132 memset (mp, 0, sizeof (*mp));
133 mp->_vl_msg_id = clib_host_to_net_u16 (VL_API_DISCONNECT_SESSION);
134 mp->handle = session_handle (s);
135 vl_msg_api_send_shmem (q, (u8 *) & mp);
139 send_session_reset_callback (stream_session_t * s)
141 vl_api_reset_session_t *mp;
142 unix_shared_memory_queue_t *q;
143 application_t *app = application_get (s->app_index);
145 q = vl_api_client_index_to_input_queue (app->api_client_index);
150 mp = vl_msg_api_alloc (sizeof (*mp));
151 memset (mp, 0, sizeof (*mp));
152 mp->_vl_msg_id = clib_host_to_net_u16 (VL_API_RESET_SESSION);
153 mp->handle = session_handle (s);
154 vl_msg_api_send_shmem (q, (u8 *) & mp);
158 send_session_connected_callback (u32 app_index, u32 api_context,
159 stream_session_t * s, u8 is_fail)
161 vl_api_connect_session_reply_t *mp;
162 unix_shared_memory_queue_t *q;
164 unix_shared_memory_queue_t *vpp_queue;
165 transport_connection_t *tc;
167 app = application_get (app_index);
168 q = vl_api_client_index_to_input_queue (app->api_client_index);
173 mp = vl_msg_api_alloc (sizeof (*mp));
174 mp->_vl_msg_id = clib_host_to_net_u16 (VL_API_CONNECT_SESSION_REPLY);
175 mp->context = api_context;
180 tc = session_get_transport (s);
187 vpp_queue = session_manager_get_vpp_event_queue (s->thread_index);
188 mp->server_rx_fifo = pointer_to_uword (s->server_rx_fifo);
189 mp->server_tx_fifo = pointer_to_uword (s->server_tx_fifo);
190 mp->handle = session_handle (s);
191 mp->vpp_event_queue_address = pointer_to_uword (vpp_queue);
192 clib_memcpy (mp->lcl_ip, &tc->lcl_ip, sizeof (tc->lcl_ip));
193 mp->is_ip4 = tc->is_ip4;
194 mp->lcl_port = tc->lcl_port;
197 mp->retval = is_fail ?
198 clib_host_to_net_u32 (VNET_API_ERROR_SESSION_CONNECT) : 0;
199 vl_msg_api_send_shmem (q, (u8 *) & mp);
204 * Redirect a connect_uri message to the indicated server.
205 * Only sent if the server has bound the related port with
206 * URI_OPTIONS_FLAGS_USE_FIFO
209 redirect_connect_callback (u32 server_api_client_index, void *mp_arg)
211 vl_api_connect_sock_t *mp = mp_arg;
212 unix_shared_memory_queue_t *server_q, *client_q;
213 vlib_main_t *vm = vlib_get_main ();
214 f64 timeout = vlib_time_now (vm) + 0.5;
218 server_q = vl_api_client_index_to_input_queue (server_api_client_index);
222 rv = VNET_API_ERROR_INVALID_VALUE;
226 client_q = vl_api_client_index_to_input_queue (mp->client_index);
229 rv = VNET_API_ERROR_INVALID_VALUE_2;
233 /* Tell the server the client's API queue address, so it can reply */
234 mp->client_queue_address = pointer_to_uword (client_q);
235 app = application_lookup (mp->client_index);
238 clib_warning ("no client application");
242 mp->options[SESSION_OPTIONS_RX_FIFO_SIZE] = app->sm_properties.rx_fifo_size;
243 mp->options[SESSION_OPTIONS_TX_FIFO_SIZE] = app->sm_properties.tx_fifo_size;
246 * Bounce message handlers MUST NOT block the data-plane.
247 * Spin waiting for the queue lock, but
250 while (vlib_time_now (vm) < timeout)
253 unix_shared_memory_queue_add (server_q, (u8 *) & mp, 1 /*nowait */ );
256 /* correctly enqueued */
258 return VNET_API_ERROR_SESSION_REDIRECT;
260 /* continue spinning, wait for pthread_mutex_trylock to work */
264 /* queue stuffed, drop the msg */
266 rv = VNET_API_ERROR_QUEUE_FULL;
271 /* Dispose of the message */
272 vl_msg_api_free (mp);
276 static session_cb_vft_t session_cb_vft = {
277 .session_accept_callback = send_session_accept_callback,
278 .session_disconnect_callback = send_session_disconnect_callback,
279 .session_connected_callback = send_session_connected_callback,
280 .session_reset_callback = send_session_reset_callback,
281 .add_segment_callback = send_add_segment_callback,
282 .redirect_connect_callback = redirect_connect_callback
286 vl_api_session_enable_disable_t_handler (vl_api_session_enable_disable_t * mp)
288 vl_api_session_enable_disable_reply_t *rmp;
289 vlib_main_t *vm = vlib_get_main ();
292 vnet_session_enable_disable (vm, mp->is_enable);
293 REPLY_MACRO (VL_API_SESSION_ENABLE_DISABLE_REPLY);
297 vl_api_application_attach_t_handler (vl_api_application_attach_t * mp)
299 vl_api_application_attach_reply_t *rmp;
300 vnet_app_attach_args_t _a, *a = &_a;
301 clib_error_t *error = 0;
304 if (session_manager_is_enabled () == 0)
306 rv = VNET_API_ERROR_FEATURE_DISABLED;
310 STATIC_ASSERT (sizeof (u64) * SESSION_OPTIONS_N_OPTIONS <=
311 sizeof (mp->options),
312 "Out of options, fix api message definition");
314 memset (a, 0, sizeof (*a));
315 a->api_client_index = mp->client_index;
316 a->options = mp->options;
317 a->session_cb_vft = &session_cb_vft;
319 if (mp->namespace_id_len > 64)
321 rv = VNET_API_ERROR_INVALID_VALUE;
325 if (mp->namespace_id_len)
327 vec_validate (a->namespace_id, mp->namespace_id_len - 1);
328 clib_memcpy (a->namespace_id, mp->namespace_id, mp->namespace_id_len);
331 if ((error = vnet_application_attach (a)))
333 rv = clib_error_get_code (error);
334 clib_error_report (error);
336 vec_free (a->namespace_id);
341 REPLY_MACRO2 (VL_API_APPLICATION_ATTACH_REPLY, ({
344 rmp->segment_name_length = 0;
345 rmp->segment_size = a->segment_size;
346 if (a->segment_name_length)
348 memcpy (rmp->segment_name, a->segment_name,
349 a->segment_name_length);
350 rmp->segment_name_length = a->segment_name_length;
352 rmp->app_event_queue_address = a->app_event_queue_address;
359 vl_api_application_detach_t_handler (vl_api_application_detach_t * mp)
361 vl_api_application_detach_reply_t *rmp;
362 int rv = VNET_API_ERROR_INVALID_VALUE_2;
363 vnet_app_detach_args_t _a, *a = &_a;
366 if (session_manager_is_enabled () == 0)
368 rv = VNET_API_ERROR_FEATURE_DISABLED;
372 app = application_lookup (mp->client_index);
375 a->app_index = app->index;
376 rv = vnet_application_detach (a);
380 REPLY_MACRO (VL_API_APPLICATION_DETACH_REPLY);
384 vl_api_bind_uri_t_handler (vl_api_bind_uri_t * mp)
386 vl_api_bind_uri_reply_t *rmp;
387 vnet_bind_args_t _a, *a = &_a;
391 if (session_manager_is_enabled () == 0)
393 rv = VNET_API_ERROR_FEATURE_DISABLED;
397 app = application_lookup (mp->client_index);
400 memset (a, 0, sizeof (*a));
401 a->uri = (char *) mp->uri;
402 a->app_index = app->index;
403 rv = vnet_bind_uri (a);
407 rv = VNET_API_ERROR_APPLICATION_NOT_ATTACHED;
411 REPLY_MACRO (VL_API_BIND_URI_REPLY);
415 vl_api_unbind_uri_t_handler (vl_api_unbind_uri_t * mp)
417 vl_api_unbind_uri_reply_t *rmp;
419 vnet_unbind_args_t _a, *a = &_a;
422 if (session_manager_is_enabled () == 0)
424 rv = VNET_API_ERROR_FEATURE_DISABLED;
428 app = application_lookup (mp->client_index);
431 a->uri = (char *) mp->uri;
432 a->app_index = app->index;
433 rv = vnet_unbind_uri (a);
437 rv = VNET_API_ERROR_APPLICATION_NOT_ATTACHED;
441 REPLY_MACRO (VL_API_UNBIND_URI_REPLY);
445 vl_api_connect_uri_t_handler (vl_api_connect_uri_t * mp)
447 vl_api_connect_session_reply_t *rmp;
448 vnet_connect_args_t _a, *a = &_a;
450 clib_error_t *error = 0;
453 if (session_manager_is_enabled () == 0)
455 rv = VNET_API_ERROR_FEATURE_DISABLED;
459 app = application_lookup (mp->client_index);
462 a->uri = (char *) mp->uri;
463 a->api_context = mp->context;
464 a->app_index = app->index;
466 if ((error = vnet_connect_uri (a)))
468 rv = clib_error_get_code (error);
469 if (rv != VNET_API_ERROR_SESSION_REDIRECT)
470 clib_error_report (error);
475 rv = VNET_API_ERROR_APPLICATION_NOT_ATTACHED;
479 * Don't reply to stream (tcp) connects. The reply will come once
480 * the connection is established. In case of the redirects, the reply
481 * will come from the server app.
483 if (rv == 0 || rv == VNET_API_ERROR_SESSION_REDIRECT)
488 REPLY_MACRO (VL_API_CONNECT_SESSION_REPLY);
493 vl_api_disconnect_session_t_handler (vl_api_disconnect_session_t * mp)
495 vl_api_disconnect_session_reply_t *rmp;
496 vnet_disconnect_args_t _a, *a = &_a;
500 if (session_manager_is_enabled () == 0)
502 rv = VNET_API_ERROR_FEATURE_DISABLED;
506 app = application_lookup (mp->client_index);
509 a->handle = mp->handle;
510 a->app_index = app->index;
511 rv = vnet_disconnect_session (a);
515 rv = VNET_API_ERROR_APPLICATION_NOT_ATTACHED;
519 REPLY_MACRO (VL_API_DISCONNECT_SESSION_REPLY);
523 vl_api_disconnect_session_reply_t_handler (vl_api_disconnect_session_reply_t *
526 vnet_disconnect_args_t _a, *a = &_a;
529 /* Client objected to disconnecting the session, log and continue */
532 clib_warning ("client retval %d", mp->retval);
536 /* Disconnect has been confirmed. Confirm close to transport */
537 app = application_lookup (mp->client_index);
540 a->handle = mp->handle;
541 a->app_index = app->index;
542 vnet_disconnect_session (a);
547 vl_api_reset_session_reply_t_handler (vl_api_reset_session_reply_t * mp)
551 u32 index, thread_index;
553 app = application_lookup (mp->client_index);
557 session_parse_handle (mp->handle, &index, &thread_index);
558 s = session_get_if_valid (index, thread_index);
559 if (s == 0 || app->index != s->app_index)
561 clib_warning ("Invalid session!");
565 /* Client objected to resetting the session, log and continue */
568 clib_warning ("client retval %d", mp->retval);
572 /* This comes as a response to a reset, transport only waiting for
573 * confirmation to remove connection state, no need to disconnect */
574 stream_session_cleanup (s);
578 vl_api_accept_session_reply_t_handler (vl_api_accept_session_reply_t * mp)
581 u32 session_index, thread_index;
582 vnet_disconnect_args_t _a, *a = &_a;
584 /* Server isn't interested, kill the session */
587 a->app_index = mp->context;
588 a->handle = mp->handle;
589 vnet_disconnect_session (a);
593 session_parse_handle (mp->handle, &session_index, &thread_index);
594 s = session_get_if_valid (session_index, thread_index);
597 clib_warning ("session doesn't exist");
600 if (s->app_index != mp->context)
602 clib_warning ("app doesn't own session");
605 s->session_state = SESSION_STATE_READY;
610 vl_api_map_another_segment_reply_t_handler (vl_api_map_another_segment_reply_t
613 clib_warning ("not implemented");
617 vl_api_bind_sock_t_handler (vl_api_bind_sock_t * mp)
619 vl_api_bind_sock_reply_t *rmp;
620 vnet_bind_args_t _a, *a = &_a;
625 if (session_manager_is_enabled () == 0)
627 rv = VNET_API_ERROR_FEATURE_DISABLED;
631 app = application_lookup (mp->client_index);
634 ip46_address_t *ip46 = (ip46_address_t *) mp->ip;
635 memset (a, 0, sizeof (*a));
636 a->sep.is_ip4 = mp->is_ip4;
638 a->sep.port = mp->port;
639 a->sep.fib_index = mp->vrf;
640 a->sep.sw_if_index = ENDPOINT_INVALID_INDEX;
641 a->sep.transport_proto = mp->proto;
642 a->app_index = app->index;
644 if ((error = vnet_bind (a)))
646 rv = clib_error_get_code (error);
647 clib_error_report (error);
652 REPLY_MACRO2 (VL_API_BIND_SOCK_REPLY,({
654 rmp->handle = a->handle;
660 vl_api_unbind_sock_t_handler (vl_api_unbind_sock_t * mp)
662 vl_api_unbind_sock_reply_t *rmp;
663 vnet_unbind_args_t _a, *a = &_a;
668 if (session_manager_is_enabled () == 0)
670 rv = VNET_API_ERROR_FEATURE_DISABLED;
674 app = application_lookup (mp->client_index);
677 a->app_index = mp->client_index;
678 a->handle = mp->handle;
679 if ((error = vnet_unbind (a)))
681 rv = clib_error_get_code (error);
682 clib_error_report (error);
687 REPLY_MACRO (VL_API_UNBIND_SOCK_REPLY);
691 vl_api_connect_sock_t_handler (vl_api_connect_sock_t * mp)
693 vl_api_connect_session_reply_t *rmp;
694 vnet_connect_args_t _a, *a = &_a;
696 clib_error_t *error = 0;
699 if (session_manager_is_enabled () == 0)
701 rv = VNET_API_ERROR_FEATURE_DISABLED;
705 app = application_lookup (mp->client_index);
708 unix_shared_memory_queue_t *client_q;
709 ip46_address_t *ip46 = (ip46_address_t *) mp->ip;
711 client_q = vl_api_client_index_to_input_queue (mp->client_index);
712 mp->client_queue_address = pointer_to_uword (client_q);
713 a->sep.is_ip4 = mp->is_ip4;
715 a->sep.port = mp->port;
716 a->sep.transport_proto = mp->proto;
717 a->sep.fib_index = mp->vrf;
718 a->sep.sw_if_index = ENDPOINT_INVALID_INDEX;
719 a->api_context = mp->context;
720 a->app_index = app->index;
722 if ((error = vnet_connect (a)))
724 rv = clib_error_get_code (error);
725 if (rv != VNET_API_ERROR_SESSION_REDIRECT)
726 clib_error_report (error);
731 rv = VNET_API_ERROR_APPLICATION_NOT_ATTACHED;
734 if (rv == 0 || rv == VNET_API_ERROR_SESSION_REDIRECT)
737 /* Got some error, relay it */
740 REPLY_MACRO (VL_API_CONNECT_SESSION_REPLY);
744 vl_api_app_namespace_add_del_t_handler (vl_api_app_namespace_add_del_t * mp)
746 vl_api_app_namespace_add_del_reply_t *rmp;
748 clib_error_t *error = 0;
750 if (!session_manager_is_enabled ())
752 rv = VNET_API_ERROR_FEATURE_DISABLED;
756 if (mp->namespace_id_len > ARRAY_LEN (mp->namespace_id))
758 rv = VNET_API_ERROR_INVALID_VALUE;
762 vec_validate (ns_id, mp->namespace_id_len - 1);
763 clib_memcpy (ns_id, mp->namespace_id, mp->namespace_id_len);
764 vnet_app_namespace_add_del_args_t args = {
766 .secret = clib_net_to_host_u64 (mp->secret),
767 .sw_if_index = clib_net_to_host_u32 (mp->sw_if_index),
768 .ip4_fib_id = clib_net_to_host_u32 (mp->ip4_fib_id),
769 .ip6_fib_id = clib_net_to_host_u32 (mp->ip6_fib_id),
772 error = vnet_app_namespace_add_del (&args);
775 rv = clib_error_get_code (error);
776 clib_error_report (error);
780 REPLY_MACRO (VL_API_APP_NAMESPACE_ADD_DEL_REPLY);
784 vl_api_session_rule_add_del_t_handler (vl_api_session_rule_add_del_t * mp)
786 vl_api_session_rule_add_del_reply_t *rmp;
787 session_rule_add_del_args_t args;
788 session_rule_table_add_del_args_t *table_args = &args.table_args;
793 fib_proto = mp->is_ip4 ? FIB_PROTOCOL_IP4 : FIB_PROTOCOL_IP6;
795 table_args->lcl.fp_len = mp->lcl_plen;
796 table_args->lcl.fp_proto = fib_proto;
797 table_args->rmt.fp_len = mp->rmt_plen;
798 table_args->rmt.fp_proto = fib_proto;
799 table_args->lcl_port = clib_net_to_host_u16 (mp->lcl_port);
800 table_args->rmt_port = clib_net_to_host_u16 (mp->rmt_port);
801 table_args->action_index = clib_net_to_host_u32 (mp->action_index);
802 table_args->is_add = mp->is_add;
803 args.appns_index = clib_net_to_host_u32 (mp->appns_index);
804 args.scope = mp->scope;
806 memset (&table_args->lcl.fp_addr, 0, sizeof (table_args->lcl.fp_addr));
807 memset (&table_args->rmt.fp_addr, 0, sizeof (table_args->rmt.fp_addr));
808 ip_set (&table_args->lcl.fp_addr, mp->lcl_ip, mp->is_ip4);
809 ip_set (&table_args->rmt.fp_addr, mp->rmt_ip, mp->is_ip4);
810 error = vnet_session_rule_add_del (&args);
813 rv = clib_error_get_code (error);
814 clib_error_report (error);
816 REPLY_MACRO (VL_API_SESSION_RULE_ADD_DEL_REPLY);
819 static clib_error_t *
820 application_reaper_cb (u32 client_index)
822 application_t *app = application_lookup (client_index);
823 vnet_app_detach_args_t _a, *a = &_a;
826 a->app_index = app->index;
827 vnet_application_detach (a);
832 VL_MSG_API_REAPER_FUNCTION (application_reaper_cb);
834 #define vl_msg_name_crc_list
835 #include <vnet/vnet_all_api_h.h>
836 #undef vl_msg_name_crc_list
839 setup_message_id_table (api_main_t * am)
841 #define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id);
842 foreach_vl_msg_name_crc_session;
848 * Add uri's API message handlers to the table.
849 * vlib has alread mapped shared memory and
850 * added the client registration handlers.
851 * See .../open-repo/vlib/memclnt_vlib.c:memclnt_process()
853 static clib_error_t *
854 session_api_hookup (vlib_main_t * vm)
856 api_main_t *am = &api_main;
859 vl_msg_api_set_handlers(VL_API_##N, #n, \
860 vl_api_##n##_t_handler, \
862 vl_api_##n##_t_endian, \
863 vl_api_##n##_t_print, \
864 sizeof(vl_api_##n##_t), 1);
865 foreach_session_api_msg;
869 * Messages which bounce off the data-plane to
870 * an API client. Simply tells the message handling infra not
871 * to free the message.
873 * Bounced message handlers MUST NOT block the data plane
875 am->message_bounce[VL_API_CONNECT_URI] = 1;
876 am->message_bounce[VL_API_CONNECT_SOCK] = 1;
879 * Set up the (msg_name, crc, message-id) table
881 setup_message_id_table (am);
886 VLIB_API_INIT_FUNCTION (session_api_hookup);
889 * fd.io coding-style-patch-verification: ON
892 * eval: (c-set-style "gnu")