RTI Connext Micro
Version 2.4.1.0
Main Page
RTI Connext Micro Documentation
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
netio_log.h
Go to the documentation of this file.
1
/*
2
* FILE: netio_log.h - NETIO Log definitions
3
*
4
* Copyright 2012-2014 Real-Time Innovations, Inc.
5
*
6
* No duplications, whole or partial, manual or electronic, may be made
7
* without express written permission. Any such copies, or
8
* revisions thereof, must display this notice unaltered.
9
* This code contains trade secrets of Real-Time Innovations, Inc.
10
*
11
* Modification History
12
* --------------------
13
* 30may2013,eh MICRO-415: resource limit msgs
14
* 09mar2012,tk Written
15
*/
16
/*ce
17
* \file
18
* \brief NETIO module log codes
19
*/
20
#ifndef netio_log_h
21
#define netio_log_h
22
23
#ifndef osapi_log_h
24
#include "osapi/osapi_log.h"
25
#endif
26
27
/*ce
28
* \defgroup NETIOLogCodesClass NETIO
29
* \brief Network I/O. ModuleID = 4
30
* \ingroup LoggingModule
31
*/
32
33
/*ce
34
* \brief Failed to get host address from a string representation
35
* \ingroup NETIOLogCodesClass
36
*/
37
#define NETIO_LOG_GETHOST_BYNAME (NETIO_LOG_BASE + 1)
38
#define NETIO_Log_gethost_byname(level_) \
39
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_GETHOST_BYNAME,\
40
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
41
42
/*ce
43
* \brief Failed to allocate memory for a bind-resolver
44
* \ingroup NETIOLogCodesClass
45
*/
46
#define NETIO_LOG_BIND_NEW (NETIO_LOG_BASE + 2)
47
#define NETIO_Log_bind_new(level_) \
48
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_BIND_NEW,\
49
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
50
51
/*ce
52
* \brief Failed to create a database table for routes of a bind-resolver
53
* \ingroup NETIOLogCodesClass
54
*/
55
#define NETIO_LOG_BIND_NEW_RTABLE (NETIO_LOG_BASE + 3)
56
#define NETIO_Log_bind_new_rtable(level_,dbrc_) \
57
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_BIND_NEW_RTABLE,\
58
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
59
"dbrc=%d",(dbrc_))
60
61
/*ce
62
* \brief Failed to create route record.
63
*
64
* \details May have exceeded
65
* DomainParticipantQos.resource_limits.max_receive_ports or
66
* DomainParticipantQos.resource_limits.local_writer_allocation
67
* \ingroup NETIOLogCodesClass
68
*/
69
#define NETIO_LOG_BIND_CREATE_RTABLE (NETIO_LOG_BASE + 4)
70
#define NETIO_Log_bind_create_rtable(level_,dbrc_) \
71
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_BIND_CREATE_RTABLE,\
72
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
73
"dbrc=%d",(dbrc_))
74
75
/*ce
76
* \brief Failed to delete a database table for routes of a bind_resolver
77
* \ingroup NETIOLogCodesClass
78
*/
79
#define NETIO_LOG_BIND_DELETE_RTABLE (NETIO_LOG_BASE + 5)
80
#define NETIO_Log_bind_delete_rtable(level_,dbrc_) \
81
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_BIND_DELETE_RTABLE,\
82
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
83
"dbrc=%d",(dbrc_))
84
85
/*ce
86
* \brief Failed to parse a string representation of a NETIO address
87
* \ingroup NETIOLogCodesClass
88
*/
89
#define NETIO_LOG_PARSE_ADDRESS (NETIO_LOG_BASE + 6)
90
#define NETIO_Log_parse_address(level_,addr_) \
91
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_PARSE_ADDRESS,\
92
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
93
"addr=%s",(addr_))
94
95
/*ce
96
* \brief Invalid length for a sequence of resolved addresses
97
* \ingroup NETIOLogCodesClass
98
*/
99
#define NETIO_LOG_BIND_GET_LENGTH (NETIO_LOG_BASE + 7)
100
#define NETIO_Log_bind_get_length(level_,len_) \
101
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_BIND_GET_LENGTH,\
102
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
103
"len=%d",(len_))
104
105
/*ce
106
* \brief Failed to set the length for a sequence of resolved addresses
107
* \ingroup NETIOLogCodesClass
108
*/
109
#define NETIO_LOG_BIND_SET_LENGTH (NETIO_LOG_BASE + 8)
110
#define NETIO_Log_bind_set_length(level_,len_) \
111
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_BIND_SET_LENGTH,\
112
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
113
"len=%d",(len_))
114
115
/*ce
116
* \brief Failed to set the maximum length of an internal sequence of addresses
117
* \ingroup NETIOLogCodesClass
118
*/
119
#define NETIO_LOG_BIND_SET_MAX (NETIO_LOG_BASE + 9)
120
#define NETIO_Log_bind_set_max(level_,len_) \
121
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_BIND_SET_MAX,\
122
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
123
"len=%d",(len_))
124
125
/*ce
126
* \brief Failed to allocate memory for a route resolver
127
* \ingroup NETIOLogCodesClass
128
*/
129
#define NETIO_LOG_ROUTE_RTABLE_ALLOC (NETIO_LOG_BASE + 10)
130
#define NETIO_Log_route_rtable_alloc(level_) \
131
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_ROUTE_RTABLE_ALLOC,\
132
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
133
134
/*ce
135
* \brief Failed to create a database table for routes of a route-resolver
136
* \ingroup NETIOLogCodesClass
137
*/
138
#define NETIO_LOG_ROUTE_RTABLE_CREATE (NETIO_LOG_BASE + 11)
139
#define NETIO_Log_route_rtable_create(level_,dbrc_) \
140
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_ROUTE_RTABLE_CREATE,\
141
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
142
"dbrc=%d",(dbrc_))
143
144
/*ce
145
* \brief Failed to delete a database table for routes of a route-resolver
146
* \ingroup NETIOLogCodesClass
147
*/
148
#define NETIO_LOG_ROUTE_RTABLE_DELETE (NETIO_LOG_BASE + 12)
149
#define NETIO_Log_route_rtable_delete(level_,dbrc_) \
150
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_ROUTE_RTABLE_DELETE,\
151
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
152
"dbrc=%d",(dbrc_))
153
154
/*ce
155
* \brief Failed to create route resolver record.
156
*
157
* \details May have exceeded
158
* DomainParticipantQos.resource_limits.max_destination_ports
159
* \ingroup NETIOLogCodesClass
160
*/
161
#define NETIO_LOG_ROUTE_RTABLE_ADD (NETIO_LOG_BASE + 13)
162
#define NETIO_Log_route_rtable_add(level_,dbrc_) \
163
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_ROUTE_RTABLE_ADD,\
164
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
165
"dbrc=%d",(dbrc_))
166
167
/*ce
168
* \brief Failed to find routes to update for a route-resolver
169
* \ingroup NETIOLogCodesClass
170
*/
171
#define NETIO_LOG_ROUTE_RTABLE_UPDATE (NETIO_LOG_BASE + 14)
172
#define NETIO_Log_route_rtable_update(level_,dbrc_) \
173
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_ROUTE_RTABLE_UPDATE,\
174
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
175
"dbrc=%d",(dbrc_))
176
177
/*ce
178
* \brief Failed to delete a database table for a NETIO loopback interface
179
* \ingroup NETIOLogCodesClass
180
*/
181
#define NETIO_LOG_LOOP_DELETE_TABLE (NETIO_LOG_BASE + 15)
182
#define NETIO_Log_loop_delete_table(level_,dbrc_) \
183
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_LOOP_DELETE_TABLE,\
184
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
185
"dbrc=%d",(dbrc_))
186
187
/*ce
188
* \brief Failed to create a database table for a NETIO loopback interface
189
* \ingroup NETIOLogCodesClass
190
*/
191
#define NETIO_LOG_LOOP_CREATE_TABLE (NETIO_LOG_BASE + 16)
192
#define NETIO_Log_loop_create_table(level_,dbrc_) \
193
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_LOOP_CREATE_TABLE,\
194
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
195
"dbrc=%d",(dbrc_))
196
197
/*ce
198
* \brief Failed to select a valid record when sending with the NETIO loopback
199
* interface
200
* \ingroup NETIOLogCodesClass
201
*/
202
#define NETIO_LOG_LOOP_SELECT_TABLE (NETIO_LOG_BASE + 17)
203
#define NETIO_Log_loop_select_table(level_,dbrc_) \
204
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_LOOP_SELECT_TABLE,\
205
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
206
"dbrc=%d",(dbrc_))
207
208
/*ce
209
* \brief Failed to send forward with the NETIO loopback interface
210
* \ingroup NETIOLogCodesClass
211
*/
212
#define NETIO_LOG_LOOP_FWD (NETIO_LOG_BASE + 18)
213
#define NETIO_Log_loop_fwd(level_) \
214
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_LOOP_FWD,\
215
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
216
217
/*ce
218
* \brief Failed to bind an external interface with the NETIO loopback interface
219
* \ingroup NETIOLogCodesClass
220
*/
221
#define NETIO_LOG_LOOP_BINDX_DB (NETIO_LOG_BASE + 19)
222
#define NETIO_Log_loop_bindx_db(level_,dbrc_) \
223
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_LOOP_BINDX_DB,\
224
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
225
"dbrc=%d",(dbrc_))
226
227
/*ce
228
* \brief Failed to unbind an external interface with the NETIO loopback
229
* interface
230
* \ingroup NETIOLogCodesClass
231
*/
232
#define NETIO_LOG_LOOP_UNBINDX_DB (NETIO_LOG_BASE + 20)
233
#define NETIO_Log_loop_unbindx_db(level_,dbrc_) \
234
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_LOOP_UNBINDX_DB,\
235
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
236
"dbrc=%d",(dbrc_))
237
238
/*ce
239
* \brief Failed to set the length of an address sequence
240
* \ingroup NETIOLogCodesClass
241
*/
242
#define NETIO_LOG_LOOP_SET_LENGTH (NETIO_LOG_BASE + 21)
243
#define NETIO_Log_loop_set_length(level_,len_) \
244
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_LOOP_SET_LENGTH,\
245
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
246
"len=%d",(len_))
247
248
/*ce
249
* \brief Failed to initialize use of sockets
250
* \ingroup NETIOLogCodesClass
251
*/
252
#define UDP_LOG_SOCKET_INIT (UDP_LOG_BASE + 22)
253
#define UDP_Log_socket_init(level_,sysrc_) \
254
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SOCKET_INIT,\
255
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
256
"sysrc=%d",(sysrc_))
257
258
/*ce
259
* \brief Failed to get the host address given the host name
260
* \ingroup NETIOLogCodesClass
261
*/
262
#define UDP_LOG_GETHOSTNAME (UDP_LOG_BASE + 23)
263
#define UDP_Log_gethostname(level_,host_,sysrc_) \
264
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_GETHOSTNAME,\
265
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,2,\
266
"host=%s,sysrc=%d",(host_),(sysrc_))
267
268
/*ce
269
* \brief Failed to set a socket for multicast loopback
270
* \ingroup NETIOLogCodesClass
271
*/
272
#define UDP_LOG_SOCKET_SET_MCAST (UDP_LOG_BASE + 24)
273
#define UDP_Log_socket_set_mcast(level_,sysrc_) \
274
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SOCKET_SET_MCAST,\
275
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
276
"sysrc=%d",(sysrc_))
277
278
/*ce
279
* \brief Failed to set a socket for multicast bound to a specific interface
280
* \ingroup NETIOLogCodesClass
281
*/
282
#define UDP_LOG_SOCKET_SET_MCASTIF (UDP_LOG_BASE + 25)
283
#define UDP_Log_socket_set_mcastif(level_,sysrc_) \
284
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SOCKET_SET_MCASTIF,\
285
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
286
"sysrc=%d",(sysrc_))
287
288
289
/*ce
290
* \brief Failed to set a socket for multicast bound to a specific interface
291
* \ingroup NETIOLogCodesClass
292
*/
293
#define UDP_LOG_SOCKET_CREATE (UDP_LOG_BASE + 26)
294
#define UDP_Log_socket_create(level_,sysrc_) \
295
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SOCKET_CREATE,\
296
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
297
"sysrc=%d",(sysrc_))
298
299
/*ce
300
* \brief Failed to set the close-on-exec flag for a socket
301
* \ingroup NETIOLogCodesClass
302
*/
303
#define UDP_LOG_SOCKET_SETFD (UDP_LOG_BASE + 27)
304
#define UDP_Log_socket_setfd(level_,sysrc_) \
305
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SOCKET_SETFD,\
306
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
307
"sysrc=%d",(sysrc_))
308
309
/*ce
310
* \brief Failed to set the socket send buffer size
311
* \ingroup NETIOLogCodesClass
312
*/
313
#define UDP_LOG_SOCKET_SNDBUF (UDP_LOG_BASE + 28)
314
#define UDP_Log_socket_sndbuf(level_,size_,sysrc_) \
315
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SOCKET_SNDBUF,\
316
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,2,\
317
"size=%d,sysrc=%d",(size_),(sysrc_))
318
319
/*ce
320
* \brief Failed to set multicast TTL for a socket
321
* \ingroup NETIOLogCodesClass
322
*/
323
#define UDP_LOG_SOCKET_TTL (UDP_LOG_BASE + 29)
324
#define UDP_Log_socket_ttl(level_,ttl_,sysrc_) \
325
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SOCKET_TTL,\
326
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,2,\
327
"ttl=%d,sysrc=%d",(ttl_),(sysrc_))
328
329
/*ce
330
* \brief Failed to initialize a receive packet
331
* \ingroup NETIOLogCodesClass
332
*/
333
#define UDP_LOG_PACKET_INIT (UDP_LOG_BASE + 30)
334
#define UDP_Log_packet_init(level_,packet_,buf_,len_) \
335
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_PACKET_INIT,\
336
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,2,\
337
"pkt=%p,buf=%p,len=%d",(packet_),(buf_),(len_))
338
339
/*ce
340
* \brief Failed to set the head of a receive packet
341
* \ingroup NETIOLogCodesClass
342
*/
343
#define UDP_LOG_PACKET_HEAD (UDP_LOG_BASE + 31)
344
#define UDP_Log_packet_head(level_,packet_,adjust_) \
345
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_PACKET_HEAD,\
346
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,2,\
347
"packet=%p,adjust=%d",(packet_),(adjust_))
348
349
/*ce
350
* \brief Failed reception upstream for a received packet
351
* \ingroup NETIOLogCodesClass
352
*/
353
#define UDP_LOG_PACKET_FWD (UDP_LOG_BASE + 32)
354
#define UDP_Log_packet_fwd(level_) \
355
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_PACKET_FWD,\
356
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
357
358
/*ce
359
* \brief Failed to delete a database record or index from an internal NAT
360
* \ingroup NETIOLogCodesClass
361
*/
362
#define UDP_LOG_NAT_DELETE (UDP_LOG_BASE + 33)
363
#define UDP_Log_nat_delete(level_,dbrc_) \
364
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_NAT_DELETE,\
365
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
366
"dbrc=%d",(dbrc_))
367
368
/*ce
369
* \brief Failed to finalize the parent NETIO interface
370
* \ingroup NETIOLogCodesClass
371
*/
372
#define UDP_LOG_FINALIZE (UDP_LOG_BASE + 34)
373
#define UDP_Log_finalize(level_) \
374
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_FINALIZE,\
375
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
376
377
/*ce
378
* \brief Failed to set socket to reuse a port or address
379
* \ingroup NETIOLogCodesClass
380
*/
381
#define UDP_LOG_SOCKET_REUSE_PORT (UDP_LOG_BASE + 35)
382
#define UDP_Log_socket_reuse_port(level_,sysrc_) \
383
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SOCKET_REUSE_PORT,\
384
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
385
"sysrc=%d",(sysrc_))
386
387
/*ce
388
* \brief Failed a socket bind
389
* \ingroup NETIOLogCodesClass
390
*/
391
#define UDP_LOG_SOCKET_BIND (UDP_LOG_BASE + 36)
392
#define UDP_Log_socket_bind(level_,addr_,port_,sysrc_) \
393
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SOCKET_BIND,\
394
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,3,\
395
"addr=%x,port=%d,sysrc=%d",(addr_),(port_),(sysrc_))
396
397
/*ce
398
* \brief Failed to add membership to a multicast group for a socket
399
* \ingroup NETIOLogCodesClass
400
*/
401
#define UDP_LOG_SOCKET_ADDGRP (UDP_LOG_BASE + 37)
402
#define UDP_Log_socket_addgrp(level_,if_,addr_,sysrc_) \
403
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SOCKET_ADDGRP,\
404
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,3,\
405
"if=%x,addr=%x,sysrc=%d",(if_),(addr_),(sysrc_))
406
407
/*ce
408
* \brief Failed to create a bind entry for a receive port
409
* \ingroup NETIOLogCodesClass
410
*/
411
#define UDP_LOG_PORT_ENTRY (UDP_LOG_BASE + 38)
412
#define UDP_Log_port_entry(level_,dbrc_) \
413
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_PORT_ENTRY,\
414
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
415
"dbrc=%d",(dbrc_))
416
417
/*ce
418
* \brief Failed to allocate memory for a receive buffer of a specific port
419
* \ingroup NETIOLogCodesClass
420
*/
421
#define UDP_LOG_PORT_ALLOC (UDP_LOG_BASE + 39)
422
#define UDP_Log_port_alloc(level_) \
423
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_PORT_ALLOC,\
424
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
425
426
/*ce
427
* \brief Failed to set the receive buffer size of a socket
428
* \ingroup NETIOLogCodesClass
429
*/
430
#define UDP_LOG_SOCKET_RXBUF (UDP_LOG_BASE + 40)
431
#define UDP_Log_socket_rxbuf(level_,size_,sysrc_) \
432
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SOCKET_RXBUF,\
433
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,2,\
434
"size=%d,sysrc=%d",(size_),(sysrc_))
435
436
/*ce
437
* \brief Failed to add a port entry record to a database table
438
* \ingroup NETIOLogCodesClass
439
*/
440
#define UDP_LOG_PORT_ADD (UDP_LOG_BASE + 41)
441
#define UDP_Log_port_add(level_,dbrc_) \
442
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_PORT_ADD,\
443
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
444
"dbrc=%d",(dbrc_))
445
446
/*ce
447
* \brief Failed to create a receive thread for a receive port
448
* \ingroup NETIOLogCodesClass
449
*/
450
#define UDP_LOG_PORT_THREAD (UDP_LOG_BASE + 42)
451
#define UDP_Log_port_thread(level_) \
452
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_PORT_THREAD,\
453
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
454
455
/*ce
456
* \brief Failed to get a list of interface addresses
457
* \ingroup NETIOLogCodesClass
458
*/
459
#define UDP_LOG_SOCKET_IFLIST (UDP_LOG_BASE + 43)
460
#define UDP_Log_socket_iflist(level_,sysrc_) \
461
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SOCKET_IFLIST,\
462
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
463
"sysrc=%d",(sysrc_))
464
465
/*ce
466
* \brief Failed to get the network interface flags or mask of a socket
467
* \ingroup NETIOLogCodesClass
468
*/
469
#define UDP_LOG_SOCKET_IFFLAGS (UDP_LOG_BASE + 44)
470
#define UDP_Log_socket_ifflags(level_,sysrc_) \
471
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SOCKET_IFFLAGS,\
472
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
473
"sysrc=%d",(sysrc_))
474
475
/*ce
476
* \brief Failed to close a socket
477
* \ingroup NETIOLogCodesClass
478
*/
479
#define UDP_LOG_SOCKET_CLOSE (UDP_LOG_BASE + 45)
480
#define UDP_Log_socket_close(level_,sysrc_) \
481
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SOCKET_CLOSE,\
482
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
483
"sysrc=%d",(sysrc_))
484
485
/*ce
486
* \brief Failed to load a dynamic library
487
* \ingroup NETIOLogCodesClass
488
*/
489
#define UDP_LOG_LOADLIB (UDP_LOG_BASE + 46)
490
#define UDP_Log_loadlib(level_) \
491
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_LOADLIB,\
492
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
493
494
/*ce
495
* \brief Failed to get interface buffer size
496
* \ingroup NETIOLogCodesClass
497
*/
498
#define UDP_LOG_GET_BUF_SIZE (UDP_LOG_BASE + 47)
499
#define UDP_Log_get_buf_size(level_) \
500
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_GET_BUF_SIZE,\
501
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
502
503
/*ce
504
* \brief Out of memory to allocate interface buffer
505
* \ingroup NETIOLogCodesClass
506
*/
507
#define UDP_LOG_GET_BUF_ALLOC (UDP_LOG_BASE + 48)
508
#define UDP_Log_get_buf_alloc(level_,size_) \
509
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_GET_BUF_ALLOC,\
510
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
511
"size=%d",(size_))
512
513
/*ce
514
* \brief Failed to get an interface list
515
* \ingroup NETIOLogCodesClass
516
*/
517
#define UDP_LOG_GET_IFLIST (UDP_LOG_BASE + 49)
518
#define UDP_Log_get_iflist(level_,sysrc_) \
519
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_GET_IFLIST,\
520
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
521
"sysrc=%d",(sysrc_))
522
523
/*ce
524
* \brief Failed getnameinfo()
525
* \ingroup NETIOLogCodesClass
526
*/
527
#define UDP_LOG_GET_NAMEINFO (UDP_LOG_BASE + 50)
528
#define UDP_Log_get_nameinfo(level_,sysrc_) \
529
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_GET_NAMEINFO,\
530
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
531
"sysrc=%d",(sysrc_))
532
533
/*ce
534
* \brief Failed memcopy()
535
* \ingroup NETIOLogCodesClass
536
*/
537
#define UDP_LOG_MEMCOPY (UDP_LOG_BASE + 51)
538
#define UDP_Log_memcopy(level_,dst_,src_,len_) \
539
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_MEMCOPY,\
540
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,3,\
541
"dst=%,src=%p,len=%d",(dst_),(src_),(len_))
542
543
/*ce
544
* \brief Failed to enable multicast loopback
545
* \ingroup NETIOLogCodesClass
546
*/
547
#define UDP_LOG_MULTICAST_ENABLE (UDP_LOG_BASE + 52)
548
#define UDP_Log_multicast_enable(level_) \
549
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_MULTICAST_ENABLE,\
550
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
551
552
/*ce
553
* \brief Failed to create a database table for a UDP interface
554
* \ingroup NETIOLogCodesClass
555
*/
556
#define UDP_LOG_UDP_CREATE_TABLE (UDP_LOG_BASE + 54)
557
#define UDP_Log_udp_create_table(level_,name_,dbrc_) \
558
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_UDP_CREATE_TABLE,\
559
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,2,\
560
"name=%s,dbrc=%d",(name_),(dbrc_))
561
562
/*ce
563
* \brief Failed to create an index for a UDP interface
564
* \ingroup NETIOLogCodesClass
565
*/
566
#define UDP_LOG_UDP_CREATE_INDEX (UDP_LOG_BASE + 55)
567
#define UDP_Log_udp_create_index(level_,table_,dbrc_) \
568
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_UDP_CREATE_INDEX,\
569
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,2,\
570
"table=%s,dbrc=%d",(table_),(dbrc_))
571
572
/*ce
573
* \brief Failed to create or insert a database record for a UDP interface
574
* \ingroup NETIOLogCodesClass
575
*/
576
#define UDP_LOG_RECORD (UDP_LOG_BASE + 56)
577
#define UDP_Log_record(level_,dbrc_) \
578
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_RECORD,\
579
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
580
"dbrc=%d",(dbrc_))
581
582
/*ce
583
* \brief Failed to finalize UDP interface factory property
584
* \ingroup NETIOLogCodesClass
585
*/
586
#define UDP_LOG_PROPERTY_FINALIZE (UDP_LOG_BASE + 57)
587
#define UDP_Log_property_finalize(level_) \
588
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_PROPERTY_FINALIZE,\
589
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
590
591
/*ce
592
* \brief Failed to allocate memory for a UDP interface
593
* \ingroup NETIOLogCodesClass
594
*/
595
#define UDP_LOG_ALLOC (UDP_LOG_BASE + 58)
596
#define UDP_Log_alloc(level_) \
597
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_ALLOC,\
598
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
599
600
/*ce
601
* \brief Failed sending a ping message, upon adding a route or waking up a
602
* receive thread
603
* \ingroup NETIOLogCodesClass
604
*/
605
#define UDP_LOG_SEND_PING (UDP_LOG_BASE + 59)
606
#define UDP_Log_send_ping(level_) \
607
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SEND_PING,\
608
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
609
610
/*ce
611
* \brief Failed to drop membership from a multicast group
612
* \ingroup NETIOLogCodesClass
613
*/
614
#define UDP_LOG_DROPGRP (UDP_LOG_BASE + 63)
615
#define UDP_Log_dropgrp(level_,sysrc_) \
616
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_DROPGRP,\
617
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
618
"sysrc=%d",(sysrc_))
619
620
/*ce
621
* \brief Length of address sequence exceeds its maximum
622
* \ingroup NETIOLogCodesClass
623
*/
624
#define UDP_LOG_GET_LENGTH (UDP_LOG_BASE + 64)
625
#define UDP_Log_get_length(level_) \
626
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_GET_LENGTH,\
627
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
628
629
/*ce
630
* \brief Failed to set the length of an address sequence
631
* \ingroup NETIOLogCodesClass
632
*/
633
#define UDP_LOG_SET_LENGTH (UDP_LOG_BASE + 65)
634
#define UDP_Log_set_length(level_,len_) \
635
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SET_LENGTH,\
636
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
637
"len=%d",(len_))
638
639
/*ce
640
* \brief Failed WSAStartup()
641
* \ingroup NETIOLogCodesClass
642
*/
643
#define UDP_LOG_WSA_STARTUP (UDP_LOG_BASE + 66)
644
#define UDP_Log_wsa_startup(level_,rc_) \
645
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_WSA_STARTUP,\
646
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
647
"sysrc=%d",(rc_))
648
649
/*ce
650
* \brief Incompatible version of Winsock, must not be older than 2.0
651
* \ingroup NETIOLogCodesClass
652
*/
653
#define UDP_LOG_WINSOCK_INCOMPATIBLE (UDP_LOG_BASE + 67)
654
#define UDP_Log_winsock_incompatible(level_) \
655
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_WSA_STARTUP,\
656
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
657
658
/*ce
659
* \brief Failed to set the name of a runtime component interface
660
* \ingroup NETIOLogCodesClass
661
*/
662
#define NETIO_LOG_SET_NAME (UDP_LOG_BASE + 70)
663
#define NETIO_Log_set_name(level_,name_) \
664
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_SET_NAME,\
665
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
666
"name=%s",(name_))
667
668
/*ce
669
* \brief Inconsistent max_message_size
670
*
671
* \details UDP_InterfaceProperty.max_message_size is set to an inconsistent
672
* value, larger than UDP_InterfaceProperty.max_send_buffer_size and/or
673
* larger than UDP_InterfaceProperty.max_receive_buffer_size .
674
*
675
* \ingroup NETIOLogCodesClass
676
*/
677
#define UDP_LOG_INCONSISTENT_MAX_MESSSAGE_SIZE (UDP_LOG_BASE + 71)
678
#define UDP_Log_inconsistent_max_message_size(level_) \
679
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_INCONSISTENT_MAX_MESSSAGE_SIZE,\
680
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
681
682
/*ce
683
* \brief Failed to set packet's head
684
*
685
* \details NETIO_Packet_set_head() failed, due to an invalid delta that would
686
* have moved the head position out-of-bounds of the packet.
687
*
688
* \ingroup NETIOLogCodesClass
689
*/
690
#define NETIO_LOG_PACKET_SET_HEAD (UDP_LOG_BASE + 72)
691
#define NETIO_Log_packet_set_head(level_,delta_) \
692
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_PACKET_SET_HEAD,\
693
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"delta=%d",(delta_))
694
695
/*ce
696
* \brief Failed to set packet's tail
697
*
698
* \details NETIO_Packet_set_tail() failed, due to an invalid delta that would
699
* have moved the tail position out-of-bounds of the packet.
700
*
701
* \ingroup NETIOLogCodesClass
702
*/
703
#define NETIO_LOG_PACKET_SET_TAIL (UDP_LOG_BASE + 73)
704
#define NETIO_Log_packet_set_tail(level_) \
705
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_PACKET_SET_TAIL,\
706
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
707
708
/*ce
709
* \brief Failed to close a socket
710
*
711
* \details A socket could not be closed due to a system error.
712
*
713
* \ingroup NETIOLogCodesClass
714
*/
715
#define NETIO_LOG_SOCKET_CLOSE (UDP_LOG_BASE + 74)
716
#define NETIO_Log_socket_close(level_,sysrc_) \
717
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_SOCKET_CLOSE,\
718
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
719
"sysrc=%d",(sysrc_))
720
721
/*ce
722
* \brief Failed to send message
723
*
724
* \details A message could not be sent due to system error
725
*
726
* \ingroup NETIOLogCodesClass
727
*/
728
#define UDP_LOG_SEND_ERROR (UDP_LOG_BASE + 75)
729
#define UDP_Log_send_error(level_,sysrc_) \
730
OSAPI_Log_msg_pN_X2((level_),UDP_LOG_SEND_ERROR,\
731
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
732
"sysrc=%d",(sysrc_))
733
734
/*ce
735
* \brief An address index was not parsed correctly
736
*
737
* \details
738
* When parsing an address string the index was not specified correctly.
739
* Legal formats are:
740
* N@
741
* [,N]@
742
* [N]@
743
* [M,N]@
744
*
745
* Where N and M are integers >= 0
746
*
747
* \ingroup NETIOLogCodesClass
748
*/
749
#define NETIO_LOG_INVALID_ADDRESS_INDEX (NETIO_LOG_BASE + 76)
750
#define NETIO_Log_invalid_address_index(level_,low_,high_) \
751
OSAPI_Log_msg_pN_X2((level_),NETIO_LOG_INVALID_ADDRESS_INDEX,\
752
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,2,\
753
"low=%d,high=%d",(low_),(high_))
754
755
#endif
/* netio_log_h */
RTI Connext Micro Version 2.4.1.0
Copyright © Thu Nov 20 2014
Real-Time Innovations, Inc