-
Notifications
You must be signed in to change notification settings - Fork 28
/
server_comm_dbus.c
689 lines (601 loc) · 21.9 KB
/
server_comm_dbus.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
/* Copyright (c) 2015 Open Networking Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <stdbool.h>
#include <string.h>
#include <dbus/dbus.h>
#include <libnetconf_xml.h>
#include "comm.h"
#include "server_ops.h"
/* default flags for DBus bus */
#define BUS_FLAGS DBUS_NAME_FLAG_DO_NOT_QUEUE
comm_t *
comm_init(int __attribute__ ((unused)) crashed)
{
int i;
DBusConnection *ret = NULL;
DBusError dbus_err;
/* initiate dbus errors */
dbus_error_init(&dbus_err);
/* connect to the D-Bus */
ret = dbus_bus_get_private(DBUS_BUS_SYSTEM, &dbus_err);
if (dbus_error_is_set(&dbus_err)) {
nc_verb_error("D-Bus connection error (%s)", dbus_err.message);
dbus_error_free(&dbus_err);
}
if (ret == NULL) {
nc_verb_error("Unable to connect to DBus system bus");
return ret;
}
dbus_connection_set_exit_on_disconnect(ret, FALSE);
/* request a name on the bus */
i = dbus_bus_request_name(ret, OFC_DBUS_BUSNAME, BUS_FLAGS, &dbus_err);
if (dbus_error_is_set(&dbus_err)) {
nc_verb_error("D-Bus name error (%s)", dbus_err.message);
dbus_error_free(&dbus_err);
if (ret != NULL) {
dbus_connection_close(ret);
dbus_connection_unref(ret);
ret = NULL;
}
}
if (DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER != i) {
nc_verb_error("Unable to became primary owner of the \"%s\" bus.",
OFC_DBUS_BUSNAME);
if (ret != NULL) {
dbus_connection_close(ret);
dbus_connection_unref(ret);
ret = NULL;
}
}
return ret;
}
/**
* @brief Send error reply message back to agent
*
* @param msg received message with request
* @param c Communication handler
* @param error_name error name according to the syntax given in the D-Bus
* specification, if NULL then DBUS_ERROR_FAILED is used
* @param error_message the error message string
*
* @return EXIT_SUCCESS, EXIT_FAILURE
*/
static int
_dbus_error_reply(DBusMessage *msg, DBusConnection *c,
const char *error_name, const char *error_message)
{
DBusMessage *reply = NULL;
dbus_uint32_t serial = 0;
int ret = EXIT_SUCCESS;
/* create a error reply from the message */
if (error_name == NULL) {
error_name = DBUS_ERROR_FAILED;
}
reply = dbus_message_new_error(msg, error_name, error_message);
/* send the reply && flush the connection */
if (!dbus_connection_send(c, reply, &serial)) {
nc_verb_error("Unable to send D-Bus reply message.");
ret = EXIT_FAILURE;
}
dbus_connection_flush(c);
/* free the reply */
if (reply) {
dbus_message_unref(reply);
}
return ret;
}
/**
* @brief Send positive (method return message with boolean argument set to
* true) reply message back to agent
*
* @param msg received message with request
* @param c communication handler
*
* @return EXIT_SUCCESS, EXIT_FAILURE
*/
static int
_dbus_positive_reply(DBusMessage *msg, DBusConnection *c)
{
DBusMessage *reply = NULL;
DBusMessageIter args;
dbus_uint32_t serial = 0;
dbus_bool_t stat = true;
int ret = EXIT_SUCCESS;
/* create a reply from the message */
reply = dbus_message_new_method_return(msg);
/* add the arguments to the reply */
dbus_message_iter_init_append(reply, &args);
if (!dbus_message_iter_append_basic(&args, DBUS_TYPE_BOOLEAN, &stat)) {
nc_verb_error("Unable to set D-Bus \"ok\" reply message");
ret = EXIT_FAILURE;
goto cleanup;
}
/* send the reply && flush the connection */
if (!dbus_connection_send(c, reply, &serial)) {
nc_verb_error("Unable to send D-Bus reply message");
ret = EXIT_FAILURE;
}
dbus_connection_flush(c);
cleanup:
/* free the reply */
if (reply) {
dbus_message_unref(reply);
}
return ret;
}
/**
* @brief Handle standard D-Bus methods on standard interfaces
* org.freedesktop.DBus.Peer, org.freedesktop.DBus.Introspectable
* and org.freedesktop.DBus.Properties
*
* @param msg received message with request
* @param c communication handler
* @return zero when message doesn't contain message call
* of standard method, nonzero if one of standard
* method was received
*/
static int
_dbus_handlestdif(DBusMessage *msg, DBusConnection *c)
{
#define DBUS_STDIF_PEER "org.freedesktop.DBus.Peer"
#define DBUS_STDIF_INTR "org.freedesktop.DBus.Introspectable"
#define DBUS_STDIF_PROP "org.freedesktop.DBus.Properties"
DBusMessage *reply = NULL;
DBusMessageIter args;
dbus_uint32_t serial = 0;
char *machine_uuid = NULL;
char *introspect;
int ret = 0;
/* check if message is a method-call for my interface */
if (dbus_message_get_type(msg) != DBUS_MESSAGE_TYPE_METHOD_CALL) {
return ret;
}
if (dbus_message_has_interface(msg, DBUS_STDIF_PEER)) {
/* perform requested operation */
if (dbus_message_has_member(msg, "Ping")) {
_dbus_positive_reply(msg, c);
ret = 1;
} else if (dbus_message_has_member(msg, "GetMachineId")) {
/* create a reply from the message */
reply = dbus_message_new_method_return(msg);
/* get machine UUID */
machine_uuid = dbus_get_local_machine_id();
/* add the arguments to the reply */
dbus_message_iter_init_append(reply, &args);
if (!dbus_message_iter_append_basic(&args, DBUS_TYPE_STRING,
&machine_uuid)) {
nc_verb_error("Unable to set D-Bus reply message (%s)",
"GetMachineId");
ret = -1;
goto cleanup;
}
/* send the reply && flush the connection */
if (!dbus_connection_send(c, reply, &serial)) {
nc_verb_error("Unable to send D-Bus reply message");
ret = -1;
goto cleanup;
}
dbus_connection_flush(c);
ret = 1;
} else {
nc_verb_error("Call with unknown member (%s) of %s received",
dbus_message_get_member(msg), DBUS_STDIF_PEER);
_dbus_error_reply(msg, c, DBUS_ERROR_UNKNOWN_METHOD,
"Unknown method invoked");
ret = -1;
goto cleanup;
}
} else if (dbus_message_has_interface(msg, DBUS_STDIF_INTR)) {
/* perform requested operation */
if (dbus_message_has_member(msg, "Introspect")) {
/* default value - TODO true structure */
introspect =
"<!DOCTYPE node PUBLIC \"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN\"\n\"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd\">\n<node/>";
/* create a reply from the message */
reply = dbus_message_new_method_return(msg);
/* add the arguments to the reply */
dbus_message_iter_init_append(reply, &args);
if (!dbus_message_iter_append_basic(&args, DBUS_TYPE_STRING,
&introspect)) {
nc_verb_error("Unable to set D-Bus reply message (%s)",
"Introspect");
ret = -1;
goto cleanup;
}
/* send the reply && flush the connection */
nc_verb_verbose("sending introspect information (%s)", introspect);
if (!dbus_connection_send(c, reply, &serial)) {
nc_verb_error("Unable to send D-Bus reply message");
ret = -1;
goto cleanup;
}
dbus_connection_flush(c);
ret = 1;
} else {
nc_verb_error("Call with unknown member (%s) of %s received",
dbus_message_get_member(msg), DBUS_STDIF_INTR);
_dbus_error_reply(msg, c, DBUS_ERROR_UNKNOWN_METHOD,
"Unknown method invoked");
ret = -1;
goto cleanup;
}
} else if (dbus_message_has_interface(msg, DBUS_STDIF_PROP)) {
nc_verb_error("Call for not used interface %s with method %s",
dbus_message_get_interface(msg),
dbus_message_get_member(msg));
_dbus_error_reply(msg, c, DBUS_ERROR_UNKNOWN_METHOD,
"Not used interface " DBUS_STDIF_PROP);
ret = -1;
goto cleanup;
}
cleanup:
dbus_free(machine_uuid);
if (reply) {
dbus_message_unref(reply);
}
return ret;
}
/* Process GetCapabilities request
*
* Reply format:
* DBUS_TYPE_UINT16 - Number of capabilities (following attributes)
* DBUS_TYPE_STRING - NETCONF capability supported by server (repeats)
*/
static void
get_capabilities(DBusConnection *c, DBusMessage *msg)
{
DBusMessage *reply = NULL;
DBusMessageIter args;
const char *cpblt;
int cpblts_cnt;
struct nc_cpblts *cpblts;
/* create reply message */
reply = dbus_message_new_method_return(msg);
/* add the arguments to the reply */
dbus_message_iter_init_append(reply, &args);
cpblts = nc_session_get_cpblts_default();
cpblts_cnt = nc_cpblts_count(cpblts);
if (!dbus_message_iter_append_basic(&args, DBUS_TYPE_UINT16, &cpblts_cnt)) {
nc_verb_error("Unable to set D-Bus reply message (%s:%s)",
OFC_DBUS_GETCAPABILITIES, "CapabilitiesCount");
_dbus_error_reply(msg, c, DBUS_ERROR_FAILED,
"Unable to create reply message content");
goto cleanup;
}
nc_cpblts_iter_start(cpblts);
while ((cpblt = nc_cpblts_iter_next(cpblts)) != NULL) {
if (!dbus_message_iter_append_basic(&args, DBUS_TYPE_STRING, &cpblt)) {
nc_verb_error("Unable to set D-Bus reply message (%s:%s)",
OFC_DBUS_GETCAPABILITIES, "Capabilities");
_dbus_error_reply(msg, c, DBUS_ERROR_FAILED,
"Unable to create reply message content");
goto cleanup;
}
}
nc_cpblts_free(cpblts);
nc_verb_verbose("Sending capabilities to agent.");
/* send the reply && flush the connection */
if (!dbus_connection_send(c, reply, NULL)) {
nc_verb_error("Unable to send D-Bus reply message");
}
dbus_connection_flush(c);
cleanup:
/* free the reply */
if (reply) {
dbus_message_unref(reply);
}
}
/* Process SetSessionParams request
*
* Request format:
* DBUS_TYPE_STRING - NETCONF session ID
* DBUS_TYPE_UINT16 - Agent's PID
* DBUS_TYPE_STRING - Username for the NETCONF session
* DBUS_TYPE_UINT16 - Number of capabilities (following attributes)
* DBUS_TYPE_STRING - NETCONF session capability (repeats)
*/
static void
set_session(DBusConnection *c, DBusMessage *msg)
{
DBusMessageIter args;
char *aux_string = NULL, *session_id = NULL, *username = NULL;
const char *dbus_id;
const char *errattr, *errmsg;
struct nc_cpblts *cpblts = NULL;
int i = 0, cpblts_count = 0;
uint16_t pid;
if (!dbus_message_iter_init(msg, &args)) {
nc_verb_error("DBus message has no arguments (%s)",
OFC_DBUS_SETSESSION);
_dbus_error_reply(msg, c, DBUS_ERROR_FAILED,
"Invalid format (no attributes).");
return;
}
/* dbus session-id */
dbus_id = dbus_message_get_sender(msg);
/* parse message */
/* session ID */
if (dbus_message_iter_get_arg_type(&args) != DBUS_TYPE_STRING) {
errattr = "SessionID";
errmsg = "SessionID expected as a string value";
goto paramerr;
}
dbus_message_iter_get_basic(&args, &session_id);
dbus_message_iter_next(&args);
/* PID */
if (dbus_message_iter_get_arg_type(&args) != DBUS_TYPE_UINT16) {
errattr = "PID";
errmsg = "PID expected as a uint16 value";
goto paramerr;
}
dbus_message_iter_get_basic(&args, &pid);
dbus_message_iter_next(&args);
/* username */
if (dbus_message_iter_get_arg_type(&args) != DBUS_TYPE_STRING) {
errattr = "Username";
errmsg = "Username expected as a string value";
goto paramerr;
}
dbus_message_iter_get_basic(&args, &username);
dbus_message_iter_next(&args);
/* number of capabilities */
if (dbus_message_iter_get_arg_type(&args) != DBUS_TYPE_UINT16) {
errattr = "CapabilitiesCount";
errmsg = "CapabilitiesCount expected as a uint16 value";
goto paramerr;
}
dbus_message_iter_get_basic(&args, &cpblts_count);
dbus_message_iter_next(&args);
/* capabilities strings */
cpblts = nc_cpblts_new(NULL);
for (i = 0; i < cpblts_count; i++) {
if (dbus_message_iter_get_arg_type(&args) != DBUS_TYPE_STRING) {
errattr = "Capabilities";
errmsg = "Capability expected as a string value";
nc_cpblts_free(cpblts);
goto paramerr;
} else {
dbus_message_iter_get_basic(&args, &aux_string);
nc_cpblts_add(cpblts, aux_string);
}
dbus_message_iter_next(&args);
}
/* add session to the list */
srv_agent_new(session_id, username, cpblts, dbus_id, pid);
/* clean */
nc_cpblts_free(cpblts);
/* positive result */
nc_verb_verbose("New agent ID set to %s (PID %d, NCSID %s)", dbus_id, pid,
session_id);
_dbus_positive_reply(msg, c);
return;
paramerr:
/* negative result */
nc_verb_error("Invalid data in the message (%s:%s)", OFC_DBUS_SETSESSION,
errattr);
_dbus_error_reply(msg, c, DBUS_ERROR_FAILED, errmsg);
}
/* Process CloseSession request
*
* Request format:
* no attribute
*
* Note: no reply
*/
static void
close_session(DBusMessage *msg)
{
struct agent_info *sender_session;
const char *id;
/*
* get session information about sender which will be removed from active
* sessions
*/
id = dbus_message_get_sender(msg);
sender_session = srv_get_agent_by_agentid(id);
if (sender_session == NULL) {
nc_verb_warning("Unable to close session (not found)");
return;
}
srv_agent_stop(sender_session);
nc_verb_verbose("Agent %s removed.", id);
}
/* Process KillSession request
*
* Request format:
* DBUS_TYPE_STRING - session ID to kill
*/
static void
kill_session(DBusConnection *c, DBusMessage *msg)
{
const char *sid = NULL, *id2kill = NULL;
DBusMessageIter args;
struct agent_info *session;
struct agent_info *sender;
if (!dbus_message_iter_init(msg, &args)) {
nc_verb_error("DBus message has no arguments (%s)",
OFC_DBUS_KILLSESSION);
_dbus_error_reply(msg, c, DBUS_ERROR_FAILED,
"Invalid format (no attributes).");
return;
}
if (dbus_message_iter_get_arg_type(&args) != DBUS_TYPE_STRING) {
nc_verb_error("Invalid data in the message (%s:%s)",
OFC_DBUS_KILLSESSION, "SessionID");
_dbus_error_reply(msg, c, DBUS_ERROR_FAILED,
"SessionID expected as a string value");
return;
}
dbus_message_iter_get_basic(&args, &id2kill);
dbus_message_iter_next(&args);
if ((session = srv_get_agent_by_ncsid(id2kill)) == NULL) {
nc_verb_error("Unable to kill session %s (not found)", id2kill);
_dbus_error_reply(msg, c, DBUS_ERROR_FAILED,
"Session to kill does not exists");
return;
}
/* check if the request does not relate to the current session */
sid = dbus_message_get_sender(msg);
if ((sender = srv_get_agent_by_agentid(sid)) != NULL) {
if (strcmp(nc_session_get_id(sender->session), sid) == 0) {
nc_verb_warning("Killing own session requested");
_dbus_error_reply(msg, c, DBUS_ERROR_FAILED,
"Killing own session requested");
return;
}
} else {
/* something is wrong, the sender's session does not exist */
nc_verb_error("Kill session requested by unknown agent (%s)", sid);
_dbus_error_reply(msg, c, DBUS_ERROR_FAILED, "You are unknown client");
return;
}
srv_agent_kill(session);
/* positive result */
nc_verb_verbose("Session %s killed (requested by %s).", id2kill, sid);
_dbus_positive_reply(msg, c);
}
/* Process GenericOperation request
*
* Request format:
* DBUS_TYPE_STRING - serialized RPC to perform
*
* Reply format:
* DBUS_TYPE_STRING - serialized RPC-REPLY to return
*/
static void
process_operation(DBusConnection *c, DBusMessage *msg)
{
char *rpcdump, *replydump;
DBusMessageIter args;
DBusMessage *dbus_reply;
struct agent_info *session;
nc_rpc *rpc = NULL;
nc_reply *reply;
session = srv_get_agent_by_agentid(dbus_message_get_sender(msg));
if (session == NULL) {
/* in case session was closed but agent is still active */
nc_verb_error("Received message from invalid session.");
_dbus_error_reply(msg, c, DBUS_ERROR_FAILED,
"Your session is no longer valid!");
return;
}
if (!dbus_message_iter_init(msg, &args)) {
nc_verb_error("DBus message has no arguments (%s)",
OFC_DBUS_PROCESSOP);
_dbus_error_reply(msg, c, DBUS_ERROR_FAILED,
"Invalid format (no attributes).");
return;
}
if (dbus_message_iter_get_arg_type(&args) != DBUS_TYPE_STRING) {
nc_verb_error("Invalid data in the message (%s:%s)",
OFC_DBUS_PROCESSOP, "RPC");
_dbus_error_reply(msg, c, DBUS_ERROR_FAILED,
"RPC expected as a string value");
return;
}
dbus_message_iter_get_basic(&args, &rpcdump);
dbus_message_iter_next(&args);
rpc = nc_rpc_build(rpcdump, session->session);
nc_verb_verbose("Processing request %s", rpcdump);
reply = srv_process_rpc(session->session, rpc);
replydump = nc_reply_dump(reply);
nc_reply_free(reply);
nc_rpc_free(rpc);
if (replydump == NULL) {
nc_verb_error("Invalid rpc-reply to send via D-Bus");
_dbus_error_reply(msg, c, DBUS_ERROR_FAILED,
"Invalid rpc-reply to send via D-Bus");
return;
}
dbus_reply = dbus_message_new_method_return(msg);
dbus_message_iter_init_append(dbus_reply, &args);
if (!dbus_message_iter_append_basic(&args, DBUS_TYPE_STRING, &replydump)) {
nc_verb_error("Unable to set D-Bus rpc-reply message");
_dbus_error_reply(msg, c, DBUS_ERROR_FAILED,
"Unable to create reply message content");
goto cleanup;
}
dbus_connection_send(c, dbus_reply, NULL);
cleanup:
dbus_connection_flush(c);
free(replydump);
dbus_message_unref(dbus_reply);
}
/* Main communication loop */
int
comm_loop(comm_t *c, int timeout)
{
DBusMessage *msg;
/* blocking read of the next available message */
dbus_connection_read_write(c, timeout);
while ((msg = dbus_connection_pop_message(c)) != NULL) {
if (_dbus_handlestdif(msg, c) != 0) {
/* free the message */
dbus_message_unref(msg);
/* go for next message */
continue;
}
nc_verb_verbose("Some message received");
/* check if message is a method-call */
if (dbus_message_get_type(msg) == DBUS_MESSAGE_TYPE_METHOD_CALL) {
/* process specific members in interface NTPR_DBUS_SRV_IF */
if (dbus_message_is_method_call(msg, OFC_DBUS_IF,
OFC_DBUS_GETCAPABILITIES) ==
TRUE) {
/* GetCapabilities request */
get_capabilities(c, msg);
} else if (dbus_message_is_method_call(msg, OFC_DBUS_IF,
OFC_DBUS_SETSESSION) ==
TRUE) {
/* SetSessionParams request */
set_session(c, msg);
} else if (dbus_message_is_method_call(msg, OFC_DBUS_IF,
OFC_DBUS_CLOSESESSION) ==
TRUE) {
/* CloseSession request */
close_session(msg);
} else if (dbus_message_is_method_call(msg, OFC_DBUS_IF,
OFC_DBUS_KILLSESSION) ==
TRUE) {
/* KillSession request */
kill_session(c, msg);
} else if (dbus_message_is_method_call(msg, OFC_DBUS_IF,
OFC_DBUS_PROCESSOP) ==
TRUE) {
/* All other requests */
process_operation(c, msg);
} else {
nc_verb_warning
("Unsupported DBus request received (interface %s, member %s)",
dbus_message_get_destination(msg),
dbus_message_get_member(msg));
}
} else {
nc_verb_warning("Unsupported DBus message type received.");
}
/* free the message */
dbus_message_unref(msg);
}
return (EXIT_SUCCESS);
}
void
comm_destroy(comm_t *c)
{
if (c != NULL) {
dbus_connection_flush(c);
dbus_connection_close(c);
dbus_connection_unref(c);
}
}