~ubuntu-branches/ubuntu/trusty/ntop/trusty

« back to all changes in this revision

Viewing changes to plugins/xml_s_ntopinterface.inc

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2008-06-15 14:38:28 UTC
  • mfrom: (2.1.11 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080615143828-oalh84nda2hje4do
Tags: 3:3.3-11
Correction of Polish translation encoding, closes: #479490. Thanks
to Christian Perrier <bubulle@debian.org> for the help.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Created by xmldump.awk
2
 
 *
3
 
 * part of and licensed the same as ntop, http://www.ntop.org
4
 
 *
5
 
 * WARNING: Changes made here will be lost the next time this
6
 
 * file is recreated, which can happen automatically during
7
 
 * a 'make'.  Y'all been warned, now!
8
 
 *
9
 
 */
10
 
 
11
 
 
12
 
    if (input == NULL) { return NULL; };
13
 
    if (parent == NULL) { return NULL; };
14
 
 
15
 
 
16
 
    /*XML s               name                 parent          "" */
17
 
    newxml_simplestring(parent,
18
 
                            "name",
19
 
                            input->name,
20
 
                            "");
21
 
 
22
 
    /*XML s               humanFriendlyName    parent          "" */
23
 
    newxml_simplestring(parent,
24
 
                            "humanFriendlyName",
25
 
                            input->humanFriendlyName,
26
 
                            "");
27
 
 
28
 
    /*XML h               flags                parent          "status of the interface" */
29
 
    newxml_simplehex(parent,
30
 
                            "flags",
31
 
                            input->flags,
32
 
                            "status of the interface");
33
 
 
34
 
    /*XML h               addr                 parent          "" */
35
 
    newxml_simplehex(parent,
36
 
                            "addr",
37
 
                            input->addr,
38
 
                            "");
39
 
 
40
 
    /*XML s               ipdot                parent          "" */
41
 
    newxml_simplestring(parent,
42
 
                            "ipdot",
43
 
                            input->ipdot,
44
 
                            "");
45
 
 
46
 
    /*XML s               fqdn                 parent          "" */
47
 
    newxml_simplestring(parent,
48
 
                            "fqdn",
49
 
                            input->fqdn,
50
 
                            "");
51
 
 
52
 
    /*XML in_addr         network              parent          "" */
53
 
    newxml_in_addr(parent,
54
 
                            "network",
55
 
                            input->network,
56
 
                            "");
57
 
 
58
 
    /*XML in_addr         netmask              parent          "" */
59
 
    newxml_in_addr(parent,
60
 
                            "netmask",
61
 
                            input->netmask,
62
 
                            "");
63
 
 
64
 
    /*XML n:u             numHosts             parent          "" */
65
 
    newxml_simplenumeric(parent,
66
 
                            "numHosts",
67
 
                            input->numHosts,
68
 
                            "",
69
 
                            "%u");
70
 
 
71
 
    /*XML in_addr         ifAddr               parent          "" */
72
 
    newxml_in_addr(parent,
73
 
                            "ifAddr",
74
 
                            input->ifAddr,
75
 
                            "");
76
 
 
77
 
    /*XML time_t          started              parent          "" */
78
 
    newxml_time_t(parent,
79
 
                            "started",
80
 
                            input->started,
81
 
                            "");
82
 
 
83
 
    /*XML time_t          firstpkt             parent          "" */
84
 
    newxml_time_t(parent,
85
 
                            "firstpkt",
86
 
                            input->firstpkt,
87
 
                            "");
88
 
 
89
 
    /*XML time_t          lastpkt              parent          "" */
90
 
    newxml_time_t(parent,
91
 
                            "lastpkt",
92
 
                            input->lastpkt,
93
 
                            "");
94
 
 
95
 
    /*XML b               virtualDevice        parent          "" */
96
 
    newxml_simplenoyes(parent,
97
 
                            "virtualDevice",
98
 
                            input->virtualDevice,
99
 
                            "");
100
 
 
101
 
    /*XML b               dummyDevice          parent          "" */
102
 
    newxml_simplenoyes(parent,
103
 
                            "dummyDevice",
104
 
                            input->dummyDevice,
105
 
                            "");
106
 
 
107
 
    /*XML n               snaplen              parent          "" */
108
 
    newxml_simplenumeric(parent,
109
 
                            "snaplen",
110
 
                            input->snaplen,
111
 
                            "",
112
 
                            "%d");
113
 
 
114
 
    /*XML h               datalink             parent          "" */
115
 
    newxml_simplehex(parent,
116
 
                            "datalink",
117
 
                            input->datalink,
118
 
                            "");
119
 
 
120
 
    /*XML s               filter               parent          "" */
121
 
    newxml_simplestring(parent,
122
 
                            "filter",
123
 
                            input->filter,
124
 
                            "");
125
 
 
126
 
    /*XML n               fd                   parent          "" */
127
 
    newxml_simplenumeric(parent,
128
 
                            "fd",
129
 
                            input->fd,
130
 
                            "",
131
 
                            "%d");
132
 
 
133
 
    /*XML e               packetStats          parent:Work     "" */
134
 
    elWork = newxml_empty(parent,
135
 
                            "packetStats",
136
 
                            "");
137
 
 
138
 
    /*XML trafficcounter  receivedPkts         Work            "" */
139
 
    newxml_trafficcounter(elWork,
140
 
                            "receivedPkts",
141
 
                            input->receivedPkts,
142
 
                            "");
143
 
 
144
 
    /*XML trafficcounter  droppedPkts          Work            "" */
145
 
    newxml_trafficcounter(elWork,
146
 
                            "droppedPkts",
147
 
                            input->droppedPkts,
148
 
                            "");
149
 
 
150
 
    /*XML trafficcounter  ethernetPkts         Work            "" */
151
 
    newxml_trafficcounter(elWork,
152
 
                            "ethernetPkts",
153
 
                            input->ethernetPkts,
154
 
                            "");
155
 
 
156
 
    /*XML trafficcounter  broadcastPkts        Work            "" */
157
 
    newxml_trafficcounter(elWork,
158
 
                            "broadcastPkts",
159
 
                            input->broadcastPkts,
160
 
                            "");
161
 
 
162
 
    /*XML trafficcounter  multicastPkts        Work            "" */
163
 
    newxml_trafficcounter(elWork,
164
 
                            "multicastPkts",
165
 
                            input->multicastPkts,
166
 
                            "");
167
 
 
168
 
    /*XML trafficcounter  ipPkts               Work            "" */
169
 
    newxml_trafficcounter(elWork,
170
 
                            "ipPkts",
171
 
                            input->ipPkts,
172
 
                            "");
173
 
 
174
 
    /*XML trafficcounter  lastMinEthernetPkts  Work            "" */
175
 
    newxml_trafficcounter(elWork,
176
 
                            "lastMinEthernetPkts",
177
 
                            input->lastMinEthernetPkts,
178
 
                            "");
179
 
 
180
 
    /*XML trafficcounter  lastFiveMinsEthernetPkts Work            "" */
181
 
    newxml_trafficcounter(elWork,
182
 
                            "lastFiveMinsEthernetPkts",
183
 
                            input->lastFiveMinsEthernetPkts,
184
 
                            "");
185
 
 
186
 
    /*XML trafficcounter  lastNumEthernetPkts  Work            "" */
187
 
    newxml_trafficcounter(elWork,
188
 
                            "lastNumEthernetPkts",
189
 
                            input->lastNumEthernetPkts,
190
 
                            "");
191
 
 
192
 
    /*XML trafficcounter  lastEthernetPkts     Work            "" */
193
 
    newxml_trafficcounter(elWork,
194
 
                            "lastEthernetPkts",
195
 
                            input->lastEthernetPkts,
196
 
                            "");
197
 
 
198
 
    /*XML trafficcounter  lastTotalPkts        Work            "" */
199
 
    newxml_trafficcounter(elWork,
200
 
                            "lastTotalPkts",
201
 
                            input->lastTotalPkts,
202
 
                            "");
203
 
 
204
 
    /*XML trafficcounter  lastBroadcastPkts    Work            "" */
205
 
    newxml_trafficcounter(elWork,
206
 
                            "lastBroadcastPkts",
207
 
                            input->lastBroadcastPkts,
208
 
                            "");
209
 
 
210
 
    /*XML trafficcounter  lastMulticastPkts    Work            "" */
211
 
    newxml_trafficcounter(elWork,
212
 
                            "lastMulticastPkts",
213
 
                            input->lastMulticastPkts,
214
 
                            "");
215
 
 
216
 
    /*XML e               byteStats            parent:Work     "" */
217
 
    elWork = newxml_empty(parent,
218
 
                            "byteStats",
219
 
                            "");
220
 
 
221
 
    /*XML trafficcounter  ethernetBytes        Work            "" */
222
 
    newxml_trafficcounter(elWork,
223
 
                            "ethernetBytes",
224
 
                            input->ethernetBytes,
225
 
                            "");
226
 
 
227
 
    /*XML trafficcounter  ipBytes              Work            "" */
228
 
    newxml_trafficcounter(elWork,
229
 
                            "ipBytes",
230
 
                            input->ipBytes,
231
 
                            "");
232
 
 
233
 
    /*XML trafficcounter  fragmentedIpBytes    Work            "" */
234
 
    newxml_trafficcounter(elWork,
235
 
                            "fragmentedIpBytes",
236
 
                            input->fragmentedIpBytes,
237
 
                            "");
238
 
 
239
 
    /*XML trafficcounter  tcpBytes             Work            "" */
240
 
    newxml_trafficcounter(elWork,
241
 
                            "tcpBytes",
242
 
                            input->tcpBytes,
243
 
                            "");
244
 
 
245
 
    /*XML trafficcounter  udpBytes             Work            "" */
246
 
    newxml_trafficcounter(elWork,
247
 
                            "udpBytes",
248
 
                            input->udpBytes,
249
 
                            "");
250
 
 
251
 
    /*XML trafficcounter  otherIpBytes         Work            "" */
252
 
    newxml_trafficcounter(elWork,
253
 
                            "otherIpBytes",
254
 
                            input->otherIpBytes,
255
 
                            "");
256
 
 
257
 
    /*XML trafficcounter  icmpBytes            Work            "" */
258
 
    newxml_trafficcounter(elWork,
259
 
                            "icmpBytes",
260
 
                            input->icmpBytes,
261
 
                            "");
262
 
 
263
 
    /*XML trafficcounter  dlcBytes             Work            "" */
264
 
    newxml_trafficcounter(elWork,
265
 
                            "dlcBytes",
266
 
                            input->dlcBytes,
267
 
                            "");
268
 
 
269
 
    /*XML trafficcounter  ipxBytes             Work            "" */
270
 
    newxml_trafficcounter(elWork,
271
 
                            "ipxBytes",
272
 
                            input->ipxBytes,
273
 
                            "");
274
 
 
275
 
    /*XML trafficcounter  stpBytes             Work            "" */
276
 
    newxml_trafficcounter(elWork,
277
 
                            "stpBytes",
278
 
                            input->stpBytes,
279
 
                            "");
280
 
 
281
 
    /*XML trafficcounter  decnetBytes          Work            "" */
282
 
    newxml_trafficcounter(elWork,
283
 
                            "decnetBytes",
284
 
                            input->decnetBytes,
285
 
                            "");
286
 
 
287
 
    /*XML trafficcounter  netbiosBytes         Work            "" */
288
 
    newxml_trafficcounter(elWork,
289
 
                            "netbiosBytes",
290
 
                            input->netbiosBytes,
291
 
                            "");
292
 
 
293
 
    /*XML trafficcounter  arpRarpBytes         Work            "" */
294
 
    newxml_trafficcounter(elWork,
295
 
                            "arpRarpBytes",
296
 
                            input->arpRarpBytes,
297
 
                            "");
298
 
 
299
 
    /*XML trafficcounter  atalkBytes           Work            "" */
300
 
    newxml_trafficcounter(elWork,
301
 
                            "atalkBytes",
302
 
                            input->atalkBytes,
303
 
                            "");
304
 
 
305
 
    /*XML trafficcounter  egpBytes             Work            "" */
306
 
    newxml_trafficcounter(elWork,
307
 
                            "egpBytes",
308
 
                            input->egpBytes,
309
 
                            "");
310
 
 
311
 
    /*XML trafficcounter  osiBytes             Work            "" */
312
 
    newxml_trafficcounter(elWork,
313
 
                            "osiBytes",
314
 
                            input->osiBytes,
315
 
                            "");
316
 
 
317
 
    /*XML trafficcounter  ipv6Bytes            Work            "" */
318
 
    newxml_trafficcounter(elWork,
319
 
                            "ipv6Bytes",
320
 
                            input->ipv6Bytes,
321
 
                            "");
322
 
 
323
 
    /*XML trafficcounter  otherBytes           Work            "" */
324
 
    newxml_trafficcounter(elWork,
325
 
                            "otherBytes",
326
 
                            input->otherBytes,
327
 
                            "");
328
 
 
329
 
    /*XML trafficcounter  lastMinEthernetBytes Work            "" */
330
 
    newxml_trafficcounter(elWork,
331
 
                            "lastMinEthernetBytes",
332
 
                            input->lastMinEthernetBytes,
333
 
                            "");
334
 
 
335
 
    /*XML trafficcounter  lastFiveMinsEthernetBytes Work            "" */
336
 
    newxml_trafficcounter(elWork,
337
 
                            "lastFiveMinsEthernetBytes",
338
 
                            input->lastFiveMinsEthernetBytes,
339
 
                            "");
340
 
 
341
 
    /*XML trafficcounter  lastEthernetBytes    Work            "" */
342
 
    newxml_trafficcounter(elWork,
343
 
                            "lastEthernetBytes",
344
 
                            input->lastEthernetBytes,
345
 
                            "");
346
 
 
347
 
    /*XML trafficcounter  lastIpBytes          Work            "" */
348
 
    newxml_trafficcounter(elWork,
349
 
                            "lastIpBytes",
350
 
                            input->lastIpBytes,
351
 
                            "");
352
 
 
353
 
    /*XML trafficcounter  lastNonIpBytes       Work            "" */
354
 
    newxml_trafficcounter(elWork,
355
 
                            "lastNonIpBytes",
356
 
                            input->lastNonIpBytes,
357
 
                            "");
358
 
 
359
 
    /*XML &packetstats    rcvdPktStats         parent          "" */
360
 
    newxml_packetstats(parent,
361
 
                            "rcvdPktStats",
362
 
                            &(input->rcvdPktStats),
363
 
                            "");
364
 
 
365
 
    /*XML &ttlstats       rcvdPktTTLStats      parent          "" */
366
 
    newxml_ttlstats(parent,
367
 
                            "rcvdPktTTLStats",
368
 
                            &(input->rcvdPktTTLStats),
369
 
                            "");
370
 
 
371
 
    /*XML e               throughputStats      parent:Work     "" */
372
 
    elWork = newxml_empty(parent,
373
 
                            "throughputStats",
374
 
                            "");
375
 
 
376
 
    /*XML n:f             peakThroughput       Work            "" */
377
 
    newxml_simplenumeric(elWork,
378
 
                            "peakThroughput",
379
 
                            input->peakThroughput,
380
 
                            "",
381
 
                            "%f");
382
 
 
383
 
    /*XML n:f             actualThpt           Work            "" */
384
 
    newxml_simplenumeric(elWork,
385
 
                            "actualThpt",
386
 
                            input->actualThpt,
387
 
                            "",
388
 
                            "%f");
389
 
 
390
 
    /*XML n:f             lastMinThpt          Work            "" */
391
 
    newxml_simplenumeric(elWork,
392
 
                            "lastMinThpt",
393
 
                            input->lastMinThpt,
394
 
                            "",
395
 
                            "%f");
396
 
 
397
 
    /*XML n:f             lastFiveMinsThpt     Work            "" */
398
 
    newxml_simplenumeric(elWork,
399
 
                            "lastFiveMinsThpt",
400
 
                            input->lastFiveMinsThpt,
401
 
                            "",
402
 
                            "%f");
403
 
 
404
 
    /*XML n:f             peakPacketThroughput Work            "" */
405
 
    newxml_simplenumeric(elWork,
406
 
                            "peakPacketThroughput",
407
 
                            input->peakPacketThroughput,
408
 
                            "",
409
 
                            "%f");
410
 
 
411
 
    /*XML n:f             actualPktsThpt       Work            "" */
412
 
    newxml_simplenumeric(elWork,
413
 
                            "actualPktsThpt",
414
 
                            input->actualPktsThpt,
415
 
                            "",
416
 
                            "%f");
417
 
 
418
 
    /*XML n:f             lastMinPktsThpt      Work            "" */
419
 
    newxml_simplenumeric(elWork,
420
 
                            "lastMinPktsThpt",
421
 
                            input->lastMinPktsThpt,
422
 
                            "",
423
 
                            "%f");
424
 
 
425
 
    /*XML n:f             lastFiveMinsPktsThpt Work            "" */
426
 
    newxml_simplenumeric(elWork,
427
 
                            "lastFiveMinsPktsThpt",
428
 
                            input->lastFiveMinsPktsThpt,
429
 
                            "",
430
 
                            "%f");
431
 
 
432
 
    /*XML time_t          lastThptUpdate       Work            "" */
433
 
    newxml_time_t(elWork,
434
 
                            "lastThptUpdate",
435
 
                            input->lastThptUpdate,
436
 
                            "");
437
 
 
438
 
    /*XML time_t          lastMinThptUpdate    Work            "" */
439
 
    newxml_time_t(elWork,
440
 
                            "lastMinThptUpdate",
441
 
                            input->lastMinThptUpdate,
442
 
                            "");
443
 
 
444
 
    /*XML time_t          lastHourThptUpdate   Work            "" */
445
 
    newxml_time_t(elWork,
446
 
                            "lastHourThptUpdate",
447
 
                            input->lastHourThptUpdate,
448
 
                            "");
449
 
 
450
 
    /*XML time_t          lastFiveMinsThptUpdate Work            "" */
451
 
    newxml_time_t(elWork,
452
 
                            "lastFiveMinsThptUpdate",
453
 
                            input->lastFiveMinsThptUpdate,
454
 
                            "");
455
 
 
456
 
    /*XML n:f             throughput           Work            "" */
457
 
    newxml_simplenumeric(elWork,
458
 
                            "throughput",
459
 
                            input->throughput,
460
 
                            "",
461
 
                            "%f");
462
 
 
463
 
    /*XML n:f             packetThroughput     Work            "" */
464
 
    newxml_simplenumeric(elWork,
465
 
                            "packetThroughput",
466
 
                            input->packetThroughput,
467
 
                            "",
468
 
                            "%f");
469
 
 
470
 
    /*XML n:u             numThptSamples       Work            "" */
471
 
    newxml_simplenumeric(elWork,
472
 
                            "numThptSamples",
473
 
                            input->numThptSamples,
474
 
                            "",
475
 
                            "%u");
476
 
 
477
 
    /*XML e               last60MinutesThpt    Work:Work2      "" */
478
 
    elWork2 = newxml_empty(elWork,
479
 
                            "last60MinutesThpt",
480
 
                            "");
481
 
 
482
 
    /*XML n:u             last60MinutesThptIdx Work2           "" */
483
 
    newxml_simplenumeric(elWork2,
484
 
                            "last60MinutesThptIdx",
485
 
                            input->last60MinutesThptIdx,
486
 
                            "",
487
 
                            "%u");
488
 
 
489
 
    { int indexT;
490
 
      for (indexT=0; indexT <= 59; indexT++) {
491
 
        /*XML *               indexT               Work2:Work3     "" */
492
 
 
493
 
        /* copied from globals-structtypes.xml at line 136 */
494
 
          if (snprintf(buf, sizeof(buf), "%d", indexT) < 0) BufferTooShort();
495
 
          elWork3 = newxml_simplestring(elWork2,
496
 
          "index",
497
 
          buf,
498
 
          "");
499
 
        /* end copy from globals-structtypes.xml */
500
 
 
501
 
        if (input->last60MinutesThpt[indexT].trafficValue != 0.0) {
502
 
                /*XML &thptentry      last60MinutesThpt[indexT] Work3           "" */
503
 
                newxml_thptentry(elWork3,
504
 
                                        "last60MinutesThpt",
505
 
                                        &(input->last60MinutesThpt[indexT]),
506
 
                                        "");
507
 
 
508
 
        }
509
 
 
510
 
    } }
511
 
 
512
 
    /*XML e               last24HoursThpt      Work:Work2      "" */
513
 
    elWork2 = newxml_empty(elWork,
514
 
                            "last24HoursThpt",
515
 
                            "");
516
 
 
517
 
    /*XML n:u             last24HoursThptIdx   Work2           "" */
518
 
    newxml_simplenumeric(elWork2,
519
 
                            "last24HoursThptIdx",
520
 
                            input->last24HoursThptIdx,
521
 
                            "",
522
 
                            "%u");
523
 
 
524
 
    { int indexT;
525
 
      for (indexT=0; indexT <= 23; indexT++) {
526
 
        /*XML *               indexT               Work2:Work3     "" */
527
 
 
528
 
        /* copied from globals-structtypes.xml at line 144 */
529
 
          if (snprintf(buf, sizeof(buf), "%d", indexT) < 0) BufferTooShort();
530
 
          elWork3 = newxml_simplestring(elWork2,
531
 
          "index",
532
 
          buf,
533
 
          "");
534
 
        /* end copy from globals-structtypes.xml */
535
 
 
536
 
        if (input->last24HoursThpt[indexT].trafficValue != 0.0) {
537
 
                /*XML &thptentry      last24HoursThpt[indexT] Work3           "" */
538
 
                newxml_thptentry(elWork3,
539
 
                                        "last24HoursThpt",
540
 
                                        &(input->last24HoursThpt[indexT]),
541
 
                                        "");
542
 
 
543
 
        }
544
 
 
545
 
    } }
546
 
 
547
 
    /*XML e               last30daysThpr       Work:Work2      "" */
548
 
    elWork2 = newxml_empty(elWork,
549
 
                            "last30daysThpr",
550
 
                            "");
551
 
 
552
 
    /*XML n:u             last30daysThptIdx    Work2           "" */
553
 
    newxml_simplenumeric(elWork2,
554
 
                            "last30daysThptIdx",
555
 
                            input->last30daysThptIdx,
556
 
                            "",
557
 
                            "%u");
558
 
 
559
 
    { int indexT;
560
 
      for (indexT=0; indexT <= 29; indexT++) {
561
 
        if (input->last30daysThpt[indexT] != 0.0) {
562
 
                /*XML *               indexT               Work2           "" */
563
 
 
564
 
                /* copied from globals-structtypes.xml at line 153 */
565
 
                  if (snprintf(buf, sizeof(buf), "%d", indexT) < 0) BufferTooShort();
566
 
                  if (snprintf(buf2, sizeof(buf2), "%f", input->last30daysThpt[indexT]) < 0) BufferTooShort();
567
 
                  newxml_simplestring(elWork2,
568
 
                  "index",
569
 
                  buf,
570
 
                  "");
571
 
                /* end copy from globals-structtypes.xml */
572
 
 
573
 
        }
574
 
 
575
 
    } }
576
 
 
577
 
    /*XML e               protocolStats        parent:Work     "" */
578
 
    elWork = newxml_empty(parent,
579
 
                            "protocolStats",
580
 
                            "");
581
 
 
582
 
    /*XML e               tcp                  Work:Work2      "" */
583
 
    elWork2 = newxml_empty(elWork,
584
 
                            "tcp",
585
 
                            "");
586
 
 
587
 
    /*XML &simpleprototrafficinfo tcpGlobalTrafficStats Work2           "" */
588
 
    newxml_simpleprototrafficinfo(elWork2,
589
 
                            "tcpGlobalTrafficStats",
590
 
                            &(input->tcpGlobalTrafficStats),
591
 
                            "");
592
 
 
593
 
    /*XML e               udp                  Work:Work2      "" */
594
 
    elWork2 = newxml_empty(elWork,
595
 
                            "udp",
596
 
                            "");
597
 
 
598
 
    /*XML &simpleprototrafficinfo udpGlobalTrafficStats Work2           "" */
599
 
    newxml_simpleprototrafficinfo(elWork2,
600
 
                            "udpGlobalTrafficStats",
601
 
                            &(input->udpGlobalTrafficStats),
602
 
                            "");
603
 
 
604
 
    /*XML e               icmp                 Work:Work2      "" */
605
 
    elWork2 = newxml_empty(elWork,
606
 
                            "icmp",
607
 
                            "");
608
 
 
609
 
    /*XML &simpleprototrafficinfo icmpGlobalTrafficStats Work2           "" */
610
 
    newxml_simpleprototrafficinfo(elWork2,
611
 
                            "icmpGlobalTrafficStats",
612
 
                            &(input->icmpGlobalTrafficStats),
613
 
                            "");
614
 
 
615
 
    { int iProtoIndex;
616
 
      for (iProtoIndex=0; iProtoIndex<myGlobals.numIpProtosToMonitor; iProtoIndex++) {
617
 
        /*XML s               protoIPTrafficInfos[iProtoIndex]!ipprotocol Work:Work2      "" */
618
 
        elWork2 = newxml_simplestring(elWork,
619
 
                                "ipprotocol",
620
 
                                myGlobals.protoIPTrafficInfos[iProtoIndex],
621
 
                                "");
622
 
 
623
 
        /*XML &simpleprototrafficinfo ipProtoStats[iProtoIndex] Work2           "" */
624
 
        newxml_simpleprototrafficinfo(elWork2,
625
 
                                "ipProtoStats",
626
 
                                &(input->ipProtoStats[iProtoIndex]),
627
 
                                "");
628
 
 
629
 
    } }
630
 
 
631
 
    /*XML trafficcounter  numEstablishedTCPConnections parent          "" */
632
 
    newxml_trafficcounter(parent,
633
 
                            "numEstablishedTCPConnections",
634
 
                            input->numEstablishedTCPConnections,
635
 
                            "");
636
 
 
637
 
    /*XML n:u             hostsno              parent          "" */
638
 
    newxml_simplenumeric(parent,
639
 
                            "hostsno",
640
 
                            input->hostsno,
641
 
                            "",
642
 
                            "%u");
643
 
 
644
 
    /*XML n:u             actualHashSize       parent          "" */
645
 
    newxml_simplenumeric(parent,
646
 
                            "actualHashSize",
647
 
                            input->actualHashSize,
648
 
                            "",
649
 
                            "%u");
650
 
 
651