1
/* Created by xmldump.awk
3
* part of and licensed the same as ntop, http://www.ntop.org
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!
12
if (root == NULL) { return NULL; };
15
/*XML e Invoke root:Invoke "" */
16
elInvoke = newxml_empty(root,
20
/*XML e ExecutionEnvironment Invoke:Execenv "" */
21
elExecenv = newxml_empty(elInvoke,
22
"ExecutionEnvironment",
25
/*XML e paths Invoke:Paths "" */
26
elPaths = newxml_empty(elInvoke,
30
/*XML e CommandLineOptions Invoke:Options "" */
31
elOptions = newxml_empty(elInvoke,
35
/*XML s program_name Execenv "" */
36
newxml_simplestring(elExecenv,
38
myGlobals.program_name,
41
/*XML n basentoppid Execenv "" */
42
newxml_simplenumeric(elExecenv,
44
myGlobals.basentoppid,
48
/*XML s startedAs Execenv "" */
49
newxml_simplestring(elExecenv,
54
/*XML n ntop_argc Execenv "" */
55
newxml_simplenumeric(elExecenv,
61
/*XML e ntop_argv Execenv:Arg "" */
62
elArg = newxml_empty(elExecenv,
66
/*XML * ntop_argc Arg "" */
68
/* copied from globals-structtypes.xml at line 210 */
69
for (i=0; i<myGlobals.ntop_argc; i++) {
70
if (snprintf(buf, sizeof(buf), "%d", i) < 0)
72
newxml(GDOME_ELEMENT_NODE, elArg, "parameter",
74
"value", myGlobals.ntop_argv[i]);
76
/* end copy from globals-structtypes.xml */
78
/*XML s accessLogFile Options "-a | --access-log-file" */
79
newxml_simplestring(elOptions,
81
myGlobals.accessLogFile,
82
"-a | --access-log-file");
84
/*XML b enablePacketDecoding Options "-b | --disable-decoders" */
85
newxml_simplenoyes(elOptions,
86
"enablePacketDecoding",
87
myGlobals.enablePacketDecoding,
88
"-b | --disable-decoders");
90
/*XML b stickyHosts Options "-c | --sticky-hosts" */
91
newxml_simplenoyes(elOptions,
93
myGlobals.stickyHosts,
94
"-c | --sticky-hosts");
96
/*XML b daemonMode Options "-d | --daemon: run as daemon flag" */
97
newxml_simplenoyes(elOptions,
100
"-d | --daemon: run as daemon flag");
102
/*XML n maxNumLines Options "-e | --max-table-rows: maximum lines/page" */
103
newxml_simplenumeric(elOptions,
105
myGlobals.maxNumLines,
106
"-e | --max-table-rows: maximum lines/page",
109
/*XML s rFileName Options "-f | --traffic-dump-file: input packet capture file" */
110
newxml_simplestring(elOptions,
113
"-f | --traffic-dump-file: input packet capture file");
115
/*XML s trackOnlyLocalHosts Options "-g | --track-local-hosts" */
116
newxml_simplestring(elOptions,
117
"trackOnlyLocalHosts",
118
myGlobals.trackOnlyLocalHosts,
119
"-g | --track-local-hosts");
121
/*XML s devices Options "-i | --interface" */
122
newxml_simplestring(elOptions,
127
/*XML b enableOtherPacketDump Options "-j | --create-other-packets" */
128
newxml_simplenoyes(elOptions,
129
"enableOtherPacketDump",
130
myGlobals.enableOtherPacketDump,
131
"-j | --create-other-packets");
133
/*XML s filterExpressionInExtraFrame Options "-k | --filter-expression-in-extra-frame" */
134
newxml_simplestring(elOptions,
135
"filterExpressionInExtraFrame",
136
myGlobals.filterExpressionInExtraFrame,
137
"-k | --filter-expression-in-extra-frame");
139
/*XML s pcapLog Options "-l | --pcap-log" */
140
newxml_simplestring(elOptions,
145
/*XML s localAddresses Options "-m | --local-subnets" */
146
newxml_simplestring(elOptions,
148
myGlobals.localAddresses,
149
"-m | --local-subnets");
151
/*XML b numericFlag Options "-n | --numeric-ip-addresses" */
152
newxml_simplenoyes(elOptions,
154
myGlobals.numericFlag,
155
"-n | --numeric-ip-addresses");
157
/*XML b dontTrustMACaddr Options "-o | --no-mac" */
158
newxml_simplenoyes(elOptions,
160
myGlobals.dontTrustMACaddr,
163
/*XML s protoSpecs Options "-p | --protocols" */
164
newxml_simplestring(elOptions,
166
myGlobals.protoSpecs,
169
/*XML b enableSuspiciousPacketDump Options "-q | --create-suspicious-packets" */
170
newxml_simplenoyes(elOptions,
171
"enableSuspiciousPacketDump",
172
myGlobals.enableSuspiciousPacketDump,
173
"-q | --create-suspicious-packets");
175
/*XML n refreshRate Options "-r | --refresh-time" */
176
newxml_simplenumeric(elOptions,
178
myGlobals.refreshRate,
179
"-r | --refresh-time",
182
/*XML b disablePromiscuousMode Options "-s | --no-promiscuous" */
183
newxml_simplenoyes(elOptions,
184
"disablePromiscuousMode",
185
myGlobals.disablePromiscuousMode,
186
"-s | --no-promiscuous");
188
/*XML n traceLevel Options "-t | --trace-level" */
189
newxml_simplenumeric(elOptions,
191
myGlobals.traceLevel,
192
"-t | --trace-level",
195
/*XML n maxNumHashEntries Options "-x <max num hash entries>" */
196
newxml_simplenumeric(elOptions,
198
myGlobals.maxNumHashEntries,
199
"-x <max num hash entries>",
202
/*XML n maxNumSessions Options "-X <max num TCP sessions>" */
203
newxml_simplenumeric(elOptions,
205
myGlobals.maxNumSessions,
206
"-X <max num TCP sessions>",
211
/*XML * effectiveUserName Options "" */
213
/* copied from globals-structtypes.xml at line 238 */
214
if (snprintf(buf, sizeof(buf), "(uid=%d, gid=%d)",
216
myGlobals.groupId) < 0)
218
newxml(GDOME_ELEMENT_NODE, elOptions, "effectiveUserName",
219
"value", myGlobals.effectiveUserName,
221
"description", "-u | --user");
222
/* end copy from globals-structtypes.xml */
226
/*XML n defaultVsan Options "-v | --default-vsan" */
227
newxml_simplenumeric(elOptions,
229
myGlobals.defaultVsan,
230
"-v | --default-vsan",
233
/*XML s webAddr Options "-w | --http-server address" */
234
newxml_simplestring(elOptions,
237
"-w | --http-server address");
239
/*XML n webPort Options "-w | --http-server :port" */
240
newxml_simplenumeric(elOptions,
243
"-w | --http-server :port",
246
/*XML b enableSessionHandling Options "-z | --disable-sessions" */
247
newxml_simplenoyes(elOptions,
248
"enableSessionHandling",
249
myGlobals.enableSessionHandling,
250
"-z | --disable-sessions");
252
/*XML s currentFilterExpression Options "-B | --filter-expression" */
253
newxml_simplestring(elOptions,
254
"currentFilterExpression",
255
myGlobals.currentFilterExpression,
256
"-B | --filter-expression");
258
/*XML s domainName Options "-D | --domain" */
259
newxml_simplestring(elOptions,
261
myGlobals.domainName,
264
/*XML b flowSpecs Options "-F | --flow-spec" */
265
newxml_simplenoyes(elOptions,
272
/*XML b debugMode Options "-K | --enable-debug" */
273
newxml_simplenoyes(elOptions,
276
"-K | --enable-debug");
278
/*XML n useSyslog Options "-L | --use-syslog" */
279
newxml_simplenumeric(elOptions,
287
/*XML b mergeInterfaces Options "-M | --no-interface-merge" */
288
newxml_simplenoyes(elOptions,
290
myGlobals.mergeInterfaces,
291
"-M | --no-interface-merge");
293
/*XML s pcapLogBasePath Options "-O | --pcap-file-path" */
294
newxml_simplestring(elOptions,
296
myGlobals.pcapLogBasePath,
297
"-O | --pcap-file-path");
299
/*XML s fcNSCacheFile Options "-N | --wwn-map" */
300
newxml_simplestring(elOptions,
302
myGlobals.fcNSCacheFile,
305
/*XML s dbPath Options "-P | --db-file-path" */
306
newxml_simplestring(elOptions,
309
"-P | --db-file-path");
311
/*XML s spoolPath Options "-Q | --spool-file-path" */
312
newxml_simplestring(elOptions,
315
"-Q | --spool-file-path");
317
/*XML s printFcOnly Options "-S | --fc-only" */
318
newxml_simplestring(elOptions,
320
myGlobals.printFcOnly,
323
/*XML s mapperURL Options "-U | --mapper" */
324
newxml_simplestring(elOptions,
331
/*XML s sslAddr Options "-W | --https-server address" */
332
newxml_simplestring(elOptions,
335
"-W | --https-server address");
337
/*XML n sslPort Options "-W | --https-server :port" */
338
newxml_simplenumeric(elOptions,
341
"-W | --https-server :port",
347
#ifdef MAKE_WITH_SSLWATCHDOG_RUNTIME
348
/*XML b useSSLwatchdog Options "--ssl-watchdog" */
349
newxml_simplenoyes(elOptions,
351
myGlobals.useSSLwatchdog,
357
#if defined(CFG_MULTITHREADED) && defined(MAKE_WITH_SCHED_YIELD)
358
/*XML b disableSchedYield Options "--disable-schedyield" */
359
newxml_simplenoyes(elOptions,
361
myGlobals.disableSchedYield,
362
"--disable-schedyield");
366
/*XML s P3Pcp Options "--p3p-cp" */
367
newxml_simplestring(elOptions,
372
/*XML s P3Puri Options "--p3p-uri" */
373
newxml_simplestring(elOptions,
378
/*XML b disableStopcap Options "--disable-stopcap" */
379
newxml_simplenoyes(elOptions,
381
myGlobals.disableStopcap,
382
"--disable-stopcap");
384
/*XML b disableInstantSessionPurge Options "--disable-instantsessionpurge" */
385
newxml_simplenoyes(elOptions,
386
"disableInstantSessionPurge",
387
myGlobals.disableInstantSessionPurge,
388
"--disable-instantsessionpurge");
390
/*XML b noFc Options "--no-fc" */
391
newxml_simplenoyes(elOptions,
396
/*XML b noInvalidLunDisplay Options "--no-invalid-lun" */
397
newxml_simplenoyes(elOptions,
398
"noInvalidLunDisplay",
399
myGlobals.noInvalidLunDisplay,
402
/*XML b disableMutexExtraInfo Options "--disable-mutexextrainfo" */
403
newxml_simplenoyes(elOptions,
404
"disableMutexExtraInfo",
405
myGlobals.disableMutexExtraInfo,
406
"--disable-mutexextrainfo");
408
/*XML b skipVersionCheck Options "--skip-version-check" */
409
newxml_simplenoyes(elOptions,
411
myGlobals.skipVersionCheck,
412
"--skip-version-check");
414
/*XML b enableFragmentHandling Options "" */
415
newxml_simplenoyes(elOptions,
416
"enableFragmentHandling",
417
myGlobals.enableFragmentHandling,