Browse code

core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,1885 +0,0 @@
1
-/*
2
- * scanner for cfg files
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * For a license to use the ser software under conditions
14
- * other than those described here, or to purchase support for this
15
- * software, please contact iptel.org by e-mail at the following addresses:
16
- *    info@iptel.org
17
- *
18
- * Kamailio is distributed in the hope that it will be useful,
19
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
- * GNU General Public License for more details.
22
- *
23
- * You should have received a copy of the GNU General Public License
24
- * along with this program; if not, write to the Free Software
25
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
26
- *
27
-*/
28
-
29
-%option noinput
30
-
31
-%{
32
-	#include "dprint.h"
33
-	#include "globals.h"
34
-	#include "mem/mem.h"
35
-	#include <string.h>
36
-	#include <stdlib.h>
37
-	#include "ip_addr.h"
38
-	#include "usr_avp.h"
39
-	#include "select.h"
40
-	#include "cfg.tab.h"
41
-	#include "sr_compat.h"
42
-	#include "ppcfg.h"
43
-
44
-	/* states */
45
-	#define INITIAL_S		0
46
-	#define COMMENT_S		1
47
-	#define COMMENT_LN_S	        2
48
-	#define STRING_S		3
49
-	#define ATTR_S                  4  /* avp/attr */
50
-	#define SELECT_S                5
51
-	#define AVP_PVAR_S              6  /* avp or pvar */
52
-	#define PVAR_P_S                7  /* pvar: $(...)  or $foo(...)*/
53
-	#define PVARID_S                8  /* $foo.bar...*/
54
-	#define STR_BETWEEN_S		9
55
-	#define LINECOMMENT_S           10
56
-	#define DEFINE_S                11
57
-	#define DEFINE_EOL_S            12
58
-	#define IFDEF_S                 13
59
-	#define IFDEF_EOL_S             14
60
-	#define IFDEF_SKIP_S            15
61
-	#define DEFINE_DATA_S           16
62
-	#define EVRT_NAME_S             17
63
-
64
-	#define STR_BUF_ALLOC_UNIT	128
65
-	struct str_buf{
66
-		char* s;
67
-		char* crt;
68
-		int left;
69
-	};
70
-
71
-
72
-	static int comment_nest=0;
73
-	static int p_nest=0;
74
-	static int state=0, old_state=0, old_initial=0;
75
-	static struct str_buf s_buf;
76
-	int line=1;
77
-	int column=1;
78
-	int startcolumn=1;
79
-	int startline=1;
80
-	char *finame = 0;
81
-	char *routename = 0;
82
-	char *default_routename = 0;
83
-
84
-	static int ign_lines=0;
85
-	static int ign_columns=0;
86
-	char* yy_number_str=0; /* str correspondent for the current NUMBER token */
87
-	int r = 0;
88
-	str *sdef = 0;
89
-
90
-	static char* addchar(struct str_buf *, char);
91
-	static char* addstr(struct str_buf *, char*, int);
92
-	static void count();
93
-	static void count_more();
94
-	static void count_ignore();
95
-
96
-	#define MAX_INCLUDE_DEPTH 10
97
-	static struct sr_yy_state {
98
-		YY_BUFFER_STATE state;
99
-		int line;
100
-		int column;
101
-		int startcolumn;
102
-		int startline;
103
-		char *finame;
104
-		char *routename;
105
-	} include_stack[MAX_INCLUDE_DEPTH];
106
-	static int include_stack_ptr = 0;
107
-
108
-	static int sr_push_yy_state(char *fin, int mode);
109
-	static int sr_pop_yy_state();
110
-
111
-	static struct sr_yy_fname {
112
-		char *fname;
113
-		struct sr_yy_fname *next;
114
-	} *sr_yy_fname_list = 0;
115
-
116
-	static str  *pp_define_get(int len, const char * text);
117
-	static int  pp_ifdef_type(int pos);
118
-	static void pp_ifdef_var(int len, const char * text);
119
-	static void pp_ifdef();
120
-	static void pp_else();
121
-	static void pp_endif();
122
-
123
-%}
124
-
125
-/* start conditions */
126
-%x STRING1 STRING2 STR_BETWEEN COMMENT COMMENT_LN ATTR SELECT AVP_PVAR PVAR_P 
127
-%x PVARID INCLF IMPTF EVRTNAME
128
-%x LINECOMMENT DEFINE_ID DEFINE_EOL DEFINE_DATA IFDEF_ID IFDEF_EOL IFDEF_SKIP
129
-
130
-/* config script types : #!SER  or #!KAMAILIO or #!MAX_COMPAT */
131
-SER_CFG			SER
132
-KAMAILIO_CFG	KAMAILIO|OPENSER
133
-MAXCOMPAT_CFG	MAXCOMPAT|ALL
134
-
135
-/* action keywords */
136
-FORWARD	forward
137
-FORWARD_TCP	forward_tcp
138
-FORWARD_UDP	forward_udp
139
-FORWARD_TLS	forward_tls
140
-FORWARD_SCTP	forward_sctp
141
-DROP	"drop"
142
-EXIT	"exit"
143
-RETURN	"return"
144
-BREAK	"break"
145
-LOG		log
146
-ERROR	error
147
-ROUTE	route
148
-ROUTE_REQUEST request_route
149
-ROUTE_FAILURE failure_route
150
-ROUTE_REPLY reply_route
151
-ROUTE_ONREPLY onreply_route
152
-ROUTE_BRANCH branch_route
153
-ROUTE_SEND onsend_route
154
-ROUTE_EVENT event_route
155
-EXEC	exec
156
-FORCE_RPORT		"force_rport"|"add_rport"
157
-ADD_LOCAL_RPORT		"add_local_rport"
158
-FORCE_TCP_ALIAS		"force_tcp_alias"|"add_tcp_alias"
159
-UDP_MTU		"udp_mtu"
160
-UDP_MTU_TRY_PROTO	"udp_mtu_try_proto"
161
-UDP4_RAW		"udp4_raw"
162
-UDP4_RAW_MTU	"udp4_raw_mtu"
163
-UDP4_RAW_TTL	"udp4_raw_ttl"
164
-SETFLAG		setflag
165
-RESETFLAG	resetflag
166
-ISFLAGSET	isflagset
167
-FLAGS_DECL	"flags"|"bool"
168
-SETAVPFLAG	setavpflag
169
-RESETAVPFLAG	resetavpflag
170
-ISAVPFLAGSET	isavpflagset
171
-AVPFLAGS_DECL	avpflags
172
-SET_HOST		"rewritehost"|"sethost"|"seth"
173
-SET_HOSTPORT	"rewritehostport"|"sethostport"|"sethp"
174
-SET_HOSTPORTTRANS	"rewritehostporttrans"|"sethostporttrans"|"sethpt"
175
-SET_USER		"rewriteuser"|"setuser"|"setu"
176
-SET_USERPASS	"rewriteuserpass"|"setuserpass"|"setup"
177
-SET_PORT		"rewriteport"|"setport"|"setp"
178
-SET_URI			"rewriteuri"|"seturi"
179
-REVERT_URI		"revert_uri"
180
-PREFIX			"prefix"
181
-STRIP			"strip"
182
-STRIP_TAIL		"strip_tail"
183
-SET_USERPHONE		"userphone"
184
-REMOVE_BRANCH	"remove_branch"
185
-CLEAR_BRANCHES	"clear_branches"
186
-IF				"if"
187
-ELSE			"else"
188
-SET_ADV_ADDRESS	"set_advertised_address"
189
-SET_ADV_PORT	"set_advertised_port"
190
-FORCE_SEND_SOCKET	"force_send_socket"
191
-SET_FWD_NO_CONNECT		"set_forward_no_connect"
192
-SET_RPL_NO_CONNECT	"set_reply_no_connect"
193
-SET_FWD_CLOSE	"set_forward_close"
194
-SET_RPL_CLOSE	"set_reply_close"
195
-SWITCH			"switch"
196
-CASE			"case"
197
-DEFAULT			"default"
198
-WHILE			"while"
199
-
200
-CFG_SELECT	"cfg_select"
201
-CFG_RESET	"cfg_reset"
202
-
203
-/*ACTION LVALUES*/
204
-URIHOST			"uri:host"
205
-URIPORT			"uri:port"
206
-
207
-MAX_LEN			"max_len"
208
-
209
-
210
-/* condition keywords */
211
-METHOD	method
212
-/* hack -- the second element in first line is referable
213
-   as either uri or status; it only would makes sense to
214
-   call it "uri" from route{} and status from onreply_route{}
215
-*/
216
-URI		"uri"|"status"
217
-FROM_URI	"from_uri"
218
-TO_URI		"to_uri"
219
-SRCIP	src_ip
220
-SRCPORT	src_port
221
-DSTIP	dst_ip
222
-DSTPORT	dst_port
223
-SNDIP	snd_ip
224
-SNDPORT	snd_port
225
-SNDPROTO	snd_proto|to_proto
226
-SNDAF		snd_af|to_af
227
-TOIP	to_ip
228
-TOPORT	to_port
229
-PROTO	proto
230
-AF		af
231
-MYSELF	myself
232
-MSGLEN			"msg:len"
233
-RETCODE	\$\?|\$retcode|\$rc
234
-/* operators */
235
-EQUAL	=
236
-EQUAL_T	==
237
-GT	>
238
-LT	<
239
-GTE	>=
240
-LTE	<=
241
-DIFF	!=
242
-MATCH	=~
243
-ADDEQ     "+="
244
-NOT		!|"not"
245
-LOG_AND		"and"|"&&"
246
-BIN_AND         "&"
247
-LOG_OR		"or"|"||"
248
-BIN_OR          "|"
249
-BIN_NOT     "~"
250
-BIN_XOR     "^"
251
-BIN_LSHIFT     "<<"
252
-BIN_RSHIFT     ">>"
253
-PLUS	"+"
254
-MINUS	"-"
255
-MODULO	"mod"
256
-STRLEN	"strlen"
257
-STREMPTY	"strempty"
258
-DEFINED		"defined"
259
-STREQ	eq
260
-INTEQ	ieq
261
-STRDIFF	ne
262
-INTDIFF	ine
263
-INTCAST	\(int\)
264
-STRCAST \(str\)
265
-
266
-/* Attribute specification */
267
-ATTR_MARK   "%"
268
-VAR_MARK    "$"
269
-SELECT_MARK  "@"
270
-ATTR_FROM         "f"
271
-ATTR_TO           "t"
272
-ATTR_FROMURI      "fr"
273
-ATTR_TOURI       "tr"
274
-ATTR_FROMUSER     "fu"
275
-ATTR_TOUSER       "tu"
276
-ATTR_FROMDOMAIN   "fd"
277
-ATTR_TODOMAIN     "td"
278
-ATTR_GLOBAL       "g"
279
-
280
-/* avp prefix */
281
-AVP_PREF	(([ft][rud]?)|g)\.
282
-
283
-/* config vars. */
284
-DEBUG	debug
285
-FORK	fork
286
-FORK_DELAY	fork_delay
287
-MODINIT_DELAY	modinit_delay
288
-LOGSTDERROR	log_stderror
289
-LOGFACILITY	log_facility
290
-LOGNAME		log_name
291
-LOGCOLOR	log_color
292
-LOGPREFIX	log_prefix
293
-LOGPREFIXMODE	log_prefix_mode
294
-LOGENGINETYPE	log_engine_type
295
-LOGENGINEDATA	log_engine_data
296
-LISTEN		listen
297
-ADVERTISE	advertise|ADVERTISE
298
-ALIAS		alias
299
-SR_AUTO_ALIASES	auto_aliases
300
-DNS		 dns
301
-REV_DNS	 rev_dns
302
-DNS_TRY_IPV6	dns_try_ipv6
303
-DNS_TRY_NAPTR	dns_try_naptr
304
-DNS_SRV_LB		dns_srv_lb|dns_srv_loadbalancing
305
-DNS_UDP_PREF	dns_udp_pref|dns_udp_preference
306
-DNS_TCP_PREF	dns_tcp_pref|dns_tcp_preference
307
-DNS_TLS_PREF	dns_tls_pref|dns_tls_preference
308
-DNS_SCTP_PREF	dns_sctp_pref|dns_sctp_preference
309
-DNS_RETR_TIME	dns_retr_time
310
-DNS_RETR_NO		dns_retr_no
311
-DNS_SERVERS_NO	dns_servers_no
312
-DNS_USE_SEARCH	dns_use_search_list
313
-DNS_SEARCH_FMATCH	dns_search_full_match
314
-DNS_NAPTR_IGNORE_RFC	dns_naptr_ignore_rfc
315
-/* dns cache */
316
-DNS_CACHE_INIT	dns_cache_init
317
-DNS_USE_CACHE	use_dns_cache
318
-DNS_USE_FAILOVER	use_dns_failover
319
-DNS_CACHE_FLAGS		dns_cache_flags
320
-DNS_CACHE_NEG_TTL	dns_cache_negative_ttl
321
-DNS_CACHE_MIN_TTL	dns_cache_min_ttl
322
-DNS_CACHE_MAX_TTL	dns_cache_max_ttl
323
-DNS_CACHE_MEM		dns_cache_mem
324
-DNS_CACHE_GC_INT	dns_cache_gc_interval
325
-DNS_CACHE_DEL_NONEXP	dns_cache_del_nonexp|dns_cache_delete_nonexpired
326
-DNS_CACHE_REC_PREF	dns_cache_rec_pref
327
-/* ipv6 auto bind */
328
-AUTO_BIND_IPV6		auto_bind_ipv6
329
-/* blacklist */
330
-DST_BLST_INIT	dst_blacklist_init
331
-USE_DST_BLST		use_dst_blacklist
332
-DST_BLST_MEM		dst_blacklist_mem
333
-DST_BLST_TTL		dst_blacklist_expire|dst_blacklist_ttl
334
-DST_BLST_GC_INT		dst_blacklist_gc_interval
335
-DST_BLST_UDP_IMASK	dst_blacklist_udp_imask
336
-DST_BLST_TCP_IMASK	dst_blacklist_tcp_imask
337
-DST_BLST_TLS_IMASK	dst_blacklist_tls_imask
338
-DST_BLST_SCTP_IMASK	dst_blacklist_sctp_imask
339
-
340
-
341
-PORT	port
342
-STAT	statistics
343
-MAXBUFFER maxbuffer
344
-SQL_BUFFER_SIZE sql_buffer_size
345
-CHILDREN children
346
-SOCKET_WORKERS socket_workers
347
-ASYNC_WORKERS async_workers
348
-ASYNC_USLEEP async_usleep
349
-CHECK_VIA	check_via
350
-PHONE2TEL	phone2tel
351
-MEMLOG		"memlog"|"mem_log"
352
-MEMDBG		"memdbg"|"mem_dbg"
353
-MEMSUM		"mem_summary"
354
-MEMSAFETY	"mem_safety"
355
-MEMJOIN		"mem_join"
356
-MEMSTATUSMODE		"mem_status_mode"
357
-CORELOG		"corelog"|"core_log"
358
-SIP_WARNING sip_warning
359
-SERVER_SIGNATURE server_signature
360
-SERVER_HEADER server_header
361
-USER_AGENT_HEADER user_agent_header
362
-REPLY_TO_VIA reply_to_via
363
-USER		"user"|"uid"
364
-GROUP		"group"|"gid"
365
-CHROOT		"chroot"
366
-WDIR		"workdir"|"wdir"
367
-RUNDIR		"rundir"|"run_dir"
368
-MHOMED		mhomed
369
-DISABLE_TCP		"disable_tcp"
370
-TCP_CHILDREN	"tcp_children"
371
-TCP_ACCEPT_ALIASES	"tcp_accept_aliases"
372
-TCP_SEND_TIMEOUT	"tcp_send_timeout"
373
-TCP_CONNECT_TIMEOUT	"tcp_connect_timeout"
374
-TCP_CON_LIFETIME	"tcp_connection_lifetime"
375
-TCP_POLL_METHOD		"tcp_poll_method"
376
-TCP_MAX_CONNECTIONS	"tcp_max_connections"
377
-TLS_MAX_CONNECTIONS	"tls_max_connections"
378
-TCP_NO_CONNECT		"tcp_no_connect"
379
-TCP_SOURCE_IPV4		"tcp_source_ipv4"
380
-TCP_SOURCE_IPV6		"tcp_source_ipv6"
381
-TCP_OPT_FD_CACHE	"tcp_fd_cache"
382
-TCP_OPT_BUF_WRITE	"tcp_buf_write"|"tcp_async"
383
-TCP_OPT_CONN_WQ_MAX	"tcp_conn_wq_max"
384
-TCP_OPT_WQ_MAX		"tcp_wq_max"
385
-TCP_OPT_RD_BUF		"tcp_rd_buf_size"
386
-TCP_OPT_WQ_BLK		"tcp_wq_blk_size"
387
-TCP_OPT_DEFER_ACCEPT "tcp_defer_accept"
388
-TCP_OPT_DELAYED_ACK	"tcp_delayed_ack"
389
-TCP_OPT_SYNCNT		"tcp_syncnt"
390
-TCP_OPT_LINGER2		"tcp_linger2"
391
-TCP_OPT_KEEPALIVE	"tcp_keepalive"
392
-TCP_OPT_KEEPIDLE	"tcp_keepidle"
393
-TCP_OPT_KEEPINTVL	"tcp_keepintvl"
394
-TCP_OPT_KEEPCNT		"tcp_keepcnt"
395
-TCP_OPT_CRLF_PING	"tcp_crlf_ping"
396
-TCP_OPT_ACCEPT_NO_CL	"tcp_accept_no_cl"
397
-TCP_CLONE_RCVBUF	"tcp_clone_rcvbuf"
398
-DISABLE_TLS		"disable_tls"|"tls_disable"
399
-ENABLE_TLS		"enable_tls"|"tls_enable"
400
-TLSLOG			"tlslog"|"tls_log"
401
-TLS_PORT_NO		"tls_port_no"
402
-TLS_METHOD		"tls_method"
403
-TLS_VERIFY		"tls_verify"
404
-TLS_REQUIRE_CERTIFICATE "tls_require_certificate"
405
-TLS_CERTIFICATE	"tls_certificate"
406
-TLS_PRIVATE_KEY "tls_private_key"
407
-TLS_CA_LIST		"tls_ca_list"
408
-TLS_HANDSHAKE_TIMEOUT	"tls_handshake_timeout"
409
-TLS_SEND_TIMEOUT	"tls_send_timeout"
410
-DISABLE_SCTP	"disable_sctp"
411
-ENABLE_SCTP	"enable_sctp"
412
-SCTP_CHILDREN	"sctp_children"
413
-
414
-ADVERTISED_ADDRESS	"advertised_address"
415
-ADVERTISED_PORT		"advertised_port"
416
-DISABLE_CORE		"disable_core_dump"
417
-OPEN_FD_LIMIT		"open_files_limit"
418
-SHM_MEM_SZ		"shm"|"shm_mem"|"shm_mem_size"
419
-SHM_FORCE_ALLOC		"shm_force_alloc"
420
-MLOCK_PAGES			"mlock_pages"
421
-REAL_TIME			"real_time"
422
-RT_PRIO				"rt_prio"
423
-RT_POLICY			"rt_policy"
424
-RT_TIMER1_PRIO		"rt_timer1_prio"|"rt_fast_timer_prio"|"rt_ftimer_prio"
425
-RT_TIMER1_POLICY	"rt_timer1_policy"|"rt_ftimer_policy"
426
-RT_TIMER2_PRIO		"rt_timer2_prio"|"rt_stimer_prio"
427
-RT_TIMER2_POLICY	"rt_timer2_policy"|"rt_stimer_policy"
428
-MCAST_LOOPBACK		"mcast_loopback"
429
-MCAST_TTL		"mcast_ttl"
430
-MCAST		"mcast"
431
-TOS			"tos"
432
-PMTU_DISCOVERY	"pmtu_discovery"
433
-KILL_TIMEOUT	"exit_timeout"|"ser_kill_timeout"
434
-MAX_WLOOPS		"max_while_loops"
435
-PVBUFSIZE		"pv_buffer_size"
436
-PVBUFSLOTS		"pv_buffer_slots"
437
-HTTP_REPLY_PARSE		"http_reply_hack"|"http_reply_parse"
438
-VERSION_TABLE_CFG		"version_table"
439
-
440
-SERVER_ID     "server_id"
441
-
442
-MAX_RECURSIVE_LEVEL		"max_recursive_level"
443
-MAX_BRANCHES_PARAM		"max_branches"|"max_branches"
444
-
445
-LATENCY_CFG_LOG			latency_cfg_log
446
-LATENCY_LOG				latency_log
447
-LATENCY_LIMIT_DB		latency_limit_db
448
-LATENCY_LIMIT_ACTION	latency_limit_action
449
-
450
-MSG_TIME	msg_time
451
-ONSEND_RT_REPLY		"onsend_route_reply"
452
-CFG_DESCRIPTION		"description"|"descr"|"desc"
453
-
454
-LOADMODULE	loadmodule
455
-LOADPATH	"loadpath"|"mpath"
456
-MODPARAM        modparam
457
-
458
-CFGENGINE	"cfgengine"
459
-
460
-/* values */
461
-YES			"yes"|"true"|"on"|"enable"
462
-NO			"no"|"false"|"off"|"disable"
463
-UDP			"udp"|"UDP"
464
-TCP			"tcp"|"TCP"
465
-TLS			"tls"|"TLS"
466
-SCTP		"sctp"|"SCTP"
467
-WS		"ws"|"WS"
468
-WSS		"wss"|"WSS"
469
-INET		"inet"|"INET"
470
-INET6		"inet6"|"INET6"
471
-SSLv23			"sslv23"|"SSLv23"|"SSLV23"
472
-SSLv2			"sslv2"|"SSLv2"|"SSLV2"
473
-SSLv3			"sslv3"|"SSLv3"|"SSLV3"
474
-TLSv1			"tlsv1"|"TLSv1"|"TLSV1"
475
-
476
-LETTER		[a-zA-Z]
477
-DIGIT		[0-9]
478
-LETTER_     {LETTER}|[_]
479
-ALPHANUM    {LETTER_}|{DIGIT}
480
-ID          {LETTER_}{ALPHANUM}*
481
-NUM_ID		{ALPHANUM}+
482
-HEX			[0-9a-fA-F]
483
-HEXNUMBER	0x{HEX}+
484
-OCTNUMBER	0[0-7]+
485
-DECNUMBER       0|([1-9]{DIGIT}*)
486
-BINNUMBER       [0-1]+b
487
-HEX4		{HEX}{1,4}
488
-IPV6ADDR	({HEX4}":"){7}{HEX4}|({HEX4}":"){1,7}(":"{HEX4}){1,7}|":"(":"{HEX4}){1,7}|({HEX4}":"){1,7}":"|"::"
489
-QUOTES		\"
490
-TICK		\'
491
-SLASH		"/"
492
-SEMICOLON	;
493
-RPAREN		\)
494
-LPAREN		\(
495
-LBRACE		\{
496
-RBRACE		\}
497
-LBRACK		\[
498
-RBRACK		\]
499
-COMMA		","
500
-COLON		":"
501
-STAR		\*
502
-DOT			\.
503
-CR			\n
504
-EVENT_RT_NAME [a-zA-Z][0-9a-zA-Z-]*(":"[a-zA-Z][0-9a-zA-Z_-]*)+
505
-
506
-
507
-COM_LINE	"#"|"//"
508
-COM_START	"/\*"
509
-COM_END		"\*/"
510
-
511
-/* start of pre-processing directives */
512
-PREP_START	"#!"|"!!"
513
-
514
-DEFINE       "define"|"def"
515
-IFDEF        ifdef
516
-IFNDEF       ifndef
517
-ENDIF        endif
518
-TRYDEF       "trydefine"|"trydef"
519
-REDEF        "redefine"|"redef"
520
-
521
-/* else is already defined */
522
-
523
-EAT_ABLE	[\ \t\b\r]
524
-
525
-/* pre-processing blocks */
526
-SUBST       subst
527
-SUBSTDEF    substdef
528
-SUBSTDEFS   substdefs
529
-
530
-/* include files */
531
-INCLUDEFILE     "include_file"
532
-IMPORTFILE      "import_file"
533
-
534
-%%
535
-
536
-
537
-<INITIAL>{EAT_ABLE}	{ count(); }
538
-
539
-<INITIAL>{FORWARD}	{count(); yylval.strval=yytext; return FORWARD; }
540
-<INITIAL>{FORWARD_TCP}	{count(); yylval.strval=yytext; return FORWARD_TCP; }
541
-<INITIAL>{FORWARD_TLS}	{count(); yylval.strval=yytext; return FORWARD_TLS; }
542
-<INITIAL>{FORWARD_SCTP}	{count(); yylval.strval=yytext; return FORWARD_SCTP;}
543
-<INITIAL>{FORWARD_UDP}	{count(); yylval.strval=yytext; return FORWARD_UDP; }
544
-<INITIAL>{DROP}	{ count(); yylval.strval=yytext; return DROP; }
545
-<INITIAL>{EXIT}	{ count(); yylval.strval=yytext; return EXIT; }
546
-<INITIAL>{RETURN}	{ count(); yylval.strval=yytext; return RETURN; }
547
-<INITIAL>{BREAK}	{ count(); yylval.strval=yytext; return BREAK; }
548
-<INITIAL>{LOG}	{ count(); yylval.strval=yytext; return LOG_TOK; }
549
-<INITIAL>{ERROR}	{ count(); yylval.strval=yytext; return ERROR; }
550
-<INITIAL>{SETFLAG}	{ count(); yylval.strval=yytext; return SETFLAG; }
551
-<INITIAL>{RESETFLAG}	{ count(); yylval.strval=yytext; return RESETFLAG; }
552
-<INITIAL>{ISFLAGSET}	{ count(); yylval.strval=yytext; return ISFLAGSET; }
553
-<INITIAL>{FLAGS_DECL}	{ count(); yylval.strval=yytext; return FLAGS_DECL; }
554
-<INITIAL>{SETAVPFLAG}	{ count(); yylval.strval=yytext; return SETAVPFLAG; }
555
-<INITIAL>{RESETAVPFLAG}	{ count(); yylval.strval=yytext; return RESETAVPFLAG; }
556
-<INITIAL>{ISAVPFLAGSET}	{ count(); yylval.strval=yytext; return ISAVPFLAGSET; }
557
-<INITIAL>{AVPFLAGS_DECL}	{ count(); yylval.strval=yytext; return AVPFLAGS_DECL; }
558
-<INITIAL>{MSGLEN}	{ count(); yylval.strval=yytext; return MSGLEN; }
559
-<INITIAL>{ROUTE}	{ count(); default_routename="DEFAULT_ROUTE";
560
-						yylval.strval=yytext; return ROUTE; }
561
-<INITIAL>{ROUTE_REQUEST}	{ count(); default_routename="DEFAULT_ROUTE";
562
-								yylval.strval=yytext; return ROUTE_REQUEST; }
563
-<INITIAL>{ROUTE_ONREPLY}	{ count(); default_routename="DEFAULT_ONREPLY";
564
-								yylval.strval=yytext;
565
-								return ROUTE_ONREPLY; }
566
-<INITIAL>{ROUTE_REPLY}	{ count(); default_routename="DEFAULT_ONREPLY";
567
-							yylval.strval=yytext; return ROUTE_REPLY; }
568
-<INITIAL>{ROUTE_FAILURE}	{ count(); default_routename="DEFAULT_FAILURE";
569
-								yylval.strval=yytext;
570
-								return ROUTE_FAILURE; }
571
-<INITIAL>{ROUTE_BRANCH} { count(); default_routename="DEFAULT_BRANCH";
572
-							yylval.strval=yytext; return ROUTE_BRANCH; }
573
-<INITIAL>{ROUTE_SEND} { count(); default_routename="DEFAULT_SEND";
574
-							yylval.strval=yytext; return ROUTE_SEND; }
575
-<INITIAL>{ROUTE_EVENT} { count(); default_routename="DEFAULT_EVENT";
576
-							yylval.strval=yytext;
577
-							state=EVRT_NAME_S; BEGIN(EVRTNAME);
578
-							return ROUTE_EVENT; }
579
-<EVRTNAME>{LBRACK}          { count(); return LBRACK; }
580
-<EVRTNAME>{EAT_ABLE}|{CR}				{ count(); };
581
-<EVRTNAME>{EVENT_RT_NAME}	{ count();
582
-								addstr(&s_buf, yytext, yyleng);
583
-								yylval.strval=s_buf.s;
584
-								routename=s_buf.s;
585
-								memset(&s_buf, 0, sizeof(s_buf));
586
-								return EVENT_RT_NAME; }
587
-<EVRTNAME>{RBRACK}          { count();
588
-								state=INITIAL_S; BEGIN(INITIAL);
589
-								return RBRACK; }
590
-<INITIAL>{EXEC}	{ count(); yylval.strval=yytext; return EXEC; }
591
-<INITIAL>{SET_HOST}	{ count(); yylval.strval=yytext; return SET_HOST; }
592
-<INITIAL>{SET_HOSTPORT}	{ count(); yylval.strval=yytext; return SET_HOSTPORT; }
593
-<INITIAL>{SET_HOSTPORTTRANS}	{ count(); yylval.strval=yytext; return SET_HOSTPORTTRANS; }
594
-<INITIAL>{SET_USER}	{ count(); yylval.strval=yytext; return SET_USER; }
595
-<INITIAL>{SET_USERPASS}	{ count(); yylval.strval=yytext; return SET_USERPASS; }
596
-<INITIAL>{SET_PORT}	{ count(); yylval.strval=yytext; return SET_PORT; }
597
-<INITIAL>{SET_URI}	{ count(); yylval.strval=yytext; return SET_URI; }
598
-<INITIAL>{REVERT_URI}	{ count(); yylval.strval=yytext; return REVERT_URI; }
599
-<INITIAL>{PREFIX}	{ count(); yylval.strval=yytext; return PREFIX; }
600
-<INITIAL>{STRIP}	{ count(); yylval.strval=yytext; return STRIP; }
601
-<INITIAL>{STRIP_TAIL}	{ count(); yylval.strval=yytext; return STRIP_TAIL; }
602
-<INITIAL>{REMOVE_BRANCH}	{ count(); yylval.strval=yytext;
603
-								return REMOVE_BRANCH; }
604
-<INITIAL>{CLEAR_BRANCHES}	{ count(); yylval.strval=yytext;
605
-								return CLEAR_BRANCHES; }
606
-<INITIAL>{SET_USERPHONE}	{ count(); yylval.strval=yytext;
607
-								return SET_USERPHONE; }
608
-<INITIAL>{FORCE_RPORT}	{ count(); yylval.strval=yytext; return FORCE_RPORT; }
609
-<INITIAL>{ADD_LOCAL_RPORT}	{ count(); yylval.strval=yytext;
610
-								return ADD_LOCAL_RPORT; }
611
-<INITIAL>{FORCE_TCP_ALIAS}	{ count(); yylval.strval=yytext;
612
-								return FORCE_TCP_ALIAS; }
613
-<INITIAL>{UDP_MTU}	{ count(); yylval.strval=yytext; return UDP_MTU; }
614
-<INITIAL>{UDP_MTU_TRY_PROTO}	{ count(); yylval.strval=yytext;
615
-									return UDP_MTU_TRY_PROTO; }
616
-<INITIAL>{UDP4_RAW}	{ count(); yylval.strval=yytext; return UDP4_RAW; }
617
-<INITIAL>{UDP4_RAW_MTU}	{ count(); yylval.strval=yytext; return UDP4_RAW_MTU; }
618
-<INITIAL>{UDP4_RAW_TTL}	{ count(); yylval.strval=yytext; return UDP4_RAW_TTL; }
619
-<INITIAL>{IF}	{ count(); yylval.strval=yytext; return IF; }
620
-<INITIAL>{ELSE}	{ count(); yylval.strval=yytext; return ELSE; }
621
-
622
-<INITIAL>{SET_ADV_ADDRESS}	{ count(); yylval.strval=yytext;
623
-										return SET_ADV_ADDRESS; }
624
-<INITIAL>{SET_ADV_PORT}	{ count(); yylval.strval=yytext;
625
-										return SET_ADV_PORT; }
626
-<INITIAL>{FORCE_SEND_SOCKET}	{	count(); yylval.strval=yytext;
627
-									return FORCE_SEND_SOCKET; }
628
-<INITIAL>{SET_FWD_NO_CONNECT}	{ count(); yylval.strval=yytext;
629
-									return SET_FWD_NO_CONNECT; }
630
-<INITIAL>{SET_RPL_NO_CONNECT}	{ count(); yylval.strval=yytext;
631
-									return SET_RPL_NO_CONNECT; }
632
-<INITIAL>{SET_FWD_CLOSE}		{ count(); yylval.strval=yytext;
633
-									return SET_FWD_CLOSE; }
634
-<INITIAL>{SET_RPL_CLOSE}		{ count(); yylval.strval=yytext;
635
-									return SET_RPL_CLOSE; }
636
-<INITIAL>{SWITCH}	{ count(); yylval.strval=yytext; return SWITCH; }
637
-<INITIAL>{CASE}	{ count(); yylval.strval=yytext; return CASE; }
638
-<INITIAL>{DEFAULT}	{ count(); yylval.strval=yytext; return DEFAULT; }
639
-<INITIAL>{WHILE}	{ count(); yylval.strval=yytext; return WHILE; }
640
-
641
-<INITIAL>{INCLUDEFILE}  { count(); BEGIN(INCLF); }
642
-<INITIAL>{PREP_START}{INCLUDEFILE}  { count(); BEGIN(INCLF); }
643
-
644
-<INITIAL>{IMPORTFILE}  { count(); BEGIN(IMPTF); }
645
-<INITIAL>{PREP_START}{IMPORTFILE}  { count(); BEGIN(IMPTF); }
646
-
647
-<INITIAL>{CFG_SELECT}	{ count(); yylval.strval=yytext; return CFG_SELECT; }
648
-<INITIAL>{CFG_RESET}	{ count(); yylval.strval=yytext; return CFG_RESET; }
649
-
650
-<INITIAL>{URIHOST}	{ count(); yylval.strval=yytext; return URIHOST; }
651
-<INITIAL>{URIPORT}	{ count(); yylval.strval=yytext; return URIPORT; }
652
-
653
-<INITIAL>{MAX_LEN}	{ count(); yylval.strval=yytext; return MAX_LEN; }
654
-
655
-<INITIAL>{METHOD}	{ count(); yylval.strval=yytext; return METHOD; }
656
-<INITIAL>{URI}	{ count(); yylval.strval=yytext; return URI; }
657
-<INITIAL>{FROM_URI}	{ count(); yylval.strval=yytext; return FROM_URI; }
658
-<INITIAL>{TO_URI}	{ count(); yylval.strval=yytext; return TO_URI; }
659
-<INITIAL>{SRCIP}	{ count(); yylval.strval=yytext; return SRCIP; }
660
-<INITIAL>{SRCPORT}	{ count(); yylval.strval=yytext; return SRCPORT; }
661
-<INITIAL>{DSTIP}	{ count(); yylval.strval=yytext; return DSTIP; }
662
-<INITIAL>{DSTPORT}	{ count(); yylval.strval=yytext; return DSTPORT; }
663
-<INITIAL>{SNDIP}	{ count(); yylval.strval=yytext; return SNDIP; }
664
-<INITIAL>{SNDPORT}	{ count(); yylval.strval=yytext; return SNDPORT; }
665
-<INITIAL>{SNDPROTO}	{ count(); yylval.strval=yytext; return SNDPROTO; }
666
-<INITIAL>{SNDAF}	{ count(); yylval.strval=yytext; return SNDAF; }
667
-<INITIAL>{TOIP}		{ count(); yylval.strval=yytext; return TOIP; }
668
-<INITIAL>{TOPORT}	{ count(); yylval.strval=yytext; return TOPORT; }
669
-<INITIAL>{PROTO}	{ count(); yylval.strval=yytext; return PROTO; }
670
-<INITIAL>{AF}	{ count(); yylval.strval=yytext; return AF; }
671
-<INITIAL>{MYSELF}	{ count(); yylval.strval=yytext; return MYSELF; }
672
-
673
-<INITIAL>{DEBUG}	{ count(); yylval.strval=yytext; return DEBUG_V; }
674
-<INITIAL>{FORK}		{ count(); yylval.strval=yytext; return FORK; }
675
-<INITIAL>{FORK_DELAY}	{ count(); yylval.strval=yytext; return FORK_DELAY; }
676
-<INITIAL>{MODINIT_DELAY}	{ count(); yylval.strval=yytext; return MODINIT_DELAY; }
677
-<INITIAL>{LOGSTDERROR}	{ yylval.strval=yytext; return LOGSTDERROR; }
678
-<INITIAL>{LOGFACILITY}	{ yylval.strval=yytext; return LOGFACILITY; }
679
-<INITIAL>{LOGNAME}	{ yylval.strval=yytext; return LOGNAME; }
680
-<INITIAL>{LOGCOLOR}	{ yylval.strval=yytext; return LOGCOLOR; }
681
-<INITIAL>{LOGPREFIX}	{ yylval.strval=yytext; return LOGPREFIX; }
682
-<INITIAL>{LOGPREFIXMODE}	{ yylval.strval=yytext; return LOGPREFIXMODE; }
683
-<INITIAL>{LOGENGINETYPE}	{ yylval.strval=yytext; return LOGENGINETYPE; }
684
-<INITIAL>{LOGENGINEDATA}	{ yylval.strval=yytext; return LOGENGINEDATA; }
685
-<INITIAL>{LISTEN}	{ count(); yylval.strval=yytext; return LISTEN; }
686
-<INITIAL>{ADVERTISE}	{ count(); yylval.strval=yytext; return ADVERTISE; }
687
-<INITIAL>{ALIAS}	{ count(); yylval.strval=yytext; return ALIAS; }
688
-<INITIAL>{SR_AUTO_ALIASES}	{ count(); yylval.strval=yytext;
689
-									return SR_AUTO_ALIASES; }
690
-<INITIAL>{DNS}	{ count(); yylval.strval=yytext; return DNS; }
691
-<INITIAL>{REV_DNS}	{ count(); yylval.strval=yytext; return REV_DNS; }
692
-<INITIAL>{DNS_TRY_IPV6}	{ count(); yylval.strval=yytext;
693
-								return DNS_TRY_IPV6; }
694
-<INITIAL>{DNS_TRY_NAPTR}	{ count(); yylval.strval=yytext;
695
-								return DNS_TRY_NAPTR; }
696
-<INITIAL>{DNS_SRV_LB}	{ count(); yylval.strval=yytext;
697
-								return DNS_SRV_LB; }
698
-<INITIAL>{DNS_UDP_PREF}	{ count(); yylval.strval=yytext;
699
-								return DNS_UDP_PREF; }
700
-<INITIAL>{DNS_TCP_PREF}	{ count(); yylval.strval=yytext;
701
-								return DNS_TCP_PREF; }
702
-<INITIAL>{DNS_TLS_PREF}	{ count(); yylval.strval=yytext;
703
-								return DNS_TLS_PREF; }
704
-<INITIAL>{DNS_SCTP_PREF}	{ count(); yylval.strval=yytext;
705
-								return DNS_SCTP_PREF; }
706
-<INITIAL>{DNS_RETR_TIME}	{ count(); yylval.strval=yytext;
707
-								return DNS_RETR_TIME; }
708
-<INITIAL>{DNS_RETR_NO}	{ count(); yylval.strval=yytext;
709
-								return DNS_RETR_NO; }
710
-<INITIAL>{DNS_SERVERS_NO}	{ count(); yylval.strval=yytext;
711
-								return DNS_SERVERS_NO; }
712
-<INITIAL>{DNS_USE_SEARCH}	{ count(); yylval.strval=yytext;
713
-								return DNS_USE_SEARCH; }
714
-<INITIAL>{DNS_SEARCH_FMATCH}	{ count(); yylval.strval=yytext;
715
-								return DNS_SEARCH_FMATCH; }
716
-<INITIAL>{DNS_NAPTR_IGNORE_RFC}	{ count(); yylval.strval=yytext;
717
-								return DNS_NAPTR_IGNORE_RFC; }
718
-<INITIAL>{DNS_CACHE_INIT}	{ count(); yylval.strval=yytext;
719
-								return DNS_CACHE_INIT; }
720
-<INITIAL>{DNS_USE_CACHE}	{ count(); yylval.strval=yytext;
721
-								return DNS_USE_CACHE; }
722
-<INITIAL>{DNS_USE_FAILOVER}	{ count(); yylval.strval=yytext;
723
-								return DNS_USE_FAILOVER; }
724
-<INITIAL>{DNS_CACHE_FLAGS}	{ count(); yylval.strval=yytext;
725
-								return DNS_CACHE_FLAGS; }
726
-<INITIAL>{DNS_CACHE_NEG_TTL}	{ count(); yylval.strval=yytext;
727
-								return DNS_CACHE_NEG_TTL; }
728
-<INITIAL>{DNS_CACHE_MIN_TTL}	{ count(); yylval.strval=yytext;
729
-								return DNS_CACHE_MIN_TTL; }
730
-<INITIAL>{DNS_CACHE_MAX_TTL}	{ count(); yylval.strval=yytext;
731
-								return DNS_CACHE_MAX_TTL; }
732
-<INITIAL>{DNS_CACHE_MEM}	{ count(); yylval.strval=yytext;
733
-								return DNS_CACHE_MEM; }
734
-<INITIAL>{DNS_CACHE_GC_INT}	{ count(); yylval.strval=yytext;
735
-								return DNS_CACHE_GC_INT; }
736
-<INITIAL>{DNS_CACHE_DEL_NONEXP}	{ count(); yylval.strval=yytext;
737
-								return DNS_CACHE_DEL_NONEXP; }
738
-<INITIAL>{DNS_CACHE_REC_PREF}	{ count(); yylval.strval=yytext;
739
-								return DNS_CACHE_REC_PREF; }
740
-<INITIAL>{AUTO_BIND_IPV6}	{ count(); yylval.strval=yytext;
741
-								return AUTO_BIND_IPV6; }
742
-<INITIAL>{DST_BLST_INIT}	{ count(); yylval.strval=yytext;
743
-								return DST_BLST_INIT; }
744
-<INITIAL>{USE_DST_BLST}	{ count(); yylval.strval=yytext;
745
-								return USE_DST_BLST; }
746
-<INITIAL>{DST_BLST_MEM}	{ count(); yylval.strval=yytext;
747
-								return DST_BLST_MEM; }
748
-<INITIAL>{DST_BLST_TTL}	{ count(); yylval.strval=yytext;
749
-								return DST_BLST_TTL; }
750
-<INITIAL>{DST_BLST_GC_INT}	{ count(); yylval.strval=yytext;
751
-								return DST_BLST_GC_INT; }
752
-<INITIAL>{DST_BLST_UDP_IMASK}	{ count(); yylval.strval=yytext;
753
-								return DST_BLST_UDP_IMASK; }
754
-<INITIAL>{DST_BLST_TCP_IMASK}	{ count(); yylval.strval=yytext;
755
-								return DST_BLST_TCP_IMASK; }
756
-<INITIAL>{DST_BLST_TLS_IMASK}	{ count(); yylval.strval=yytext;
757
-								return DST_BLST_TLS_IMASK; }
758
-<INITIAL>{DST_BLST_SCTP_IMASK}	{ count(); yylval.strval=yytext;
759
-								return DST_BLST_SCTP_IMASK; }
760
-<INITIAL>{PORT}	{ count(); yylval.strval=yytext; return PORT; }
761
-<INITIAL>{STAT}	{ count(); yylval.strval=yytext; return STAT; }
762
-<INITIAL>{MAXBUFFER}	{ count(); yylval.strval=yytext; return MAXBUFFER; }
763
-<INITIAL>{SQL_BUFFER_SIZE}	{ count(); yylval.strval=yytext; return SQL_BUFFER_SIZE; }
764
-<INITIAL>{CHILDREN}	{ count(); yylval.strval=yytext; return CHILDREN; }
765
-<INITIAL>{SOCKET_WORKERS}	{ count(); yylval.strval=yytext; return SOCKET_WORKERS; }
766
-<INITIAL>{ASYNC_WORKERS}	{ count(); yylval.strval=yytext; return ASYNC_WORKERS; }
767
-<INITIAL>{ASYNC_USLEEP}	{ count(); yylval.strval=yytext; return ASYNC_USLEEP; }
768
-<INITIAL>{CHECK_VIA}	{ count(); yylval.strval=yytext; return CHECK_VIA; }
769
-<INITIAL>{PHONE2TEL}	{ count(); yylval.strval=yytext; return PHONE2TEL; }
770
-<INITIAL>{MEMLOG}	{ count(); yylval.strval=yytext; return MEMLOG; }
771
-<INITIAL>{MEMDBG}	{ count(); yylval.strval=yytext; return MEMDBG; }
772
-<INITIAL>{MEMSUM}	{ count(); yylval.strval=yytext; return MEMSUM; }
773
-<INITIAL>{MEMSAFETY}	{ count(); yylval.strval=yytext; return MEMSAFETY; }
774
-<INITIAL>{MEMJOIN}	{ count(); yylval.strval=yytext; return MEMJOIN; }
775
-<INITIAL>{MEMSTATUSMODE}	{ count(); yylval.strval=yytext; return MEMSTATUSMODE; }
776
-<INITIAL>{CORELOG}	{ count(); yylval.strval=yytext; return CORELOG; }
777
-<INITIAL>{SIP_WARNING}	{ count(); yylval.strval=yytext; return SIP_WARNING; }
778
-<INITIAL>{USER}		{ count(); yylval.strval=yytext; return USER; }
779
-<INITIAL>{GROUP}	{ count(); yylval.strval=yytext; return GROUP; }
780
-<INITIAL>{CHROOT}	{ count(); yylval.strval=yytext; return CHROOT; }
781
-<INITIAL>{WDIR}	{ count(); yylval.strval=yytext; return WDIR; }
782
-<INITIAL>{RUNDIR}	{ count(); yylval.strval=yytext; return RUNDIR; }
783
-<INITIAL>{MHOMED}	{ count(); yylval.strval=yytext; return MHOMED; }
784
-<INITIAL>{DISABLE_TCP}	{ count(); yylval.strval=yytext; return DISABLE_TCP; }
785
-<INITIAL>{TCP_CHILDREN}	{ count(); yylval.strval=yytext; return TCP_CHILDREN; }
786
-<INITIAL>{TCP_ACCEPT_ALIASES}	{ count(); yylval.strval=yytext;
787
-									return TCP_ACCEPT_ALIASES; }
788
-<INITIAL>{TCP_SEND_TIMEOUT}		{ count(); yylval.strval=yytext;
789
-									return TCP_SEND_TIMEOUT; }
790
-<INITIAL>{TCP_CONNECT_TIMEOUT}		{ count(); yylval.strval=yytext;
791
-									return TCP_CONNECT_TIMEOUT; }
792
-<INITIAL>{TCP_CON_LIFETIME}		{ count(); yylval.strval=yytext;
793
-									return TCP_CON_LIFETIME; }
794
-<INITIAL>{TCP_POLL_METHOD}		{ count(); yylval.strval=yytext;
795
-									return TCP_POLL_METHOD; }
796
-<INITIAL>{TCP_MAX_CONNECTIONS}	{ count(); yylval.strval=yytext;
797
-									return TCP_MAX_CONNECTIONS; }
798
-<INITIAL>{TLS_MAX_CONNECTIONS}	{ count(); yylval.strval=yytext;
799
-									return TLS_MAX_CONNECTIONS; }
800
-<INITIAL>{TCP_NO_CONNECT}		{ count(); yylval.strval=yytext;
801
-									return TCP_NO_CONNECT; }
802
-<INITIAL>{TCP_SOURCE_IPV4}		{ count(); yylval.strval=yytext;
803
-									return TCP_SOURCE_IPV4; }
804
-<INITIAL>{TCP_SOURCE_IPV6}		{ count(); yylval.strval=yytext;
805
-									return TCP_SOURCE_IPV6; }
806
-<INITIAL>{TCP_OPT_FD_CACHE}		{ count(); yylval.strval=yytext;
807
-									return TCP_OPT_FD_CACHE; }
808
-<INITIAL>{TCP_OPT_CONN_WQ_MAX}	{ count(); yylval.strval=yytext;
809
-									return TCP_OPT_CONN_WQ_MAX; }
810
-<INITIAL>{TCP_OPT_WQ_MAX}	{ count(); yylval.strval=yytext;
811
-									return TCP_OPT_WQ_MAX; }
812
-<INITIAL>{TCP_OPT_RD_BUF}	{ count(); yylval.strval=yytext;
813
-									return TCP_OPT_RD_BUF; }
814
-<INITIAL>{TCP_OPT_WQ_BLK}	{ count(); yylval.strval=yytext;
815
-									return TCP_OPT_WQ_BLK; }
816
-<INITIAL>{TCP_OPT_BUF_WRITE}	{ count(); yylval.strval=yytext;
817
-									return TCP_OPT_BUF_WRITE; }
818
-<INITIAL>{TCP_OPT_DEFER_ACCEPT}	{ count(); yylval.strval=yytext;
819
-									return TCP_OPT_DEFER_ACCEPT; }
820
-<INITIAL>{TCP_OPT_DELAYED_ACK}	{ count(); yylval.strval=yytext;
821
-									return TCP_OPT_DELAYED_ACK; }
822
-<INITIAL>{TCP_OPT_SYNCNT}		{ count(); yylval.strval=yytext;
823
-									return TCP_OPT_SYNCNT; }
824
-<INITIAL>{TCP_OPT_LINGER2}		{ count(); yylval.strval=yytext;
825
-									return TCP_OPT_LINGER2; }
826
-<INITIAL>{TCP_OPT_KEEPALIVE}	{ count(); yylval.strval=yytext;
827
-									return TCP_OPT_KEEPALIVE; }
828
-<INITIAL>{TCP_OPT_KEEPIDLE}		{ count(); yylval.strval=yytext;
829
-									return TCP_OPT_KEEPIDLE; }
830
-<INITIAL>{TCP_OPT_KEEPINTVL}	{ count(); yylval.strval=yytext;
831
-									return TCP_OPT_KEEPINTVL; }
832
-<INITIAL>{TCP_OPT_KEEPCNT}	{ count(); yylval.strval=yytext;
833
-									return TCP_OPT_KEEPCNT; }
834
-<INITIAL>{TCP_OPT_CRLF_PING}	{ count(); yylval.strval=yytext;
835
-									return TCP_OPT_CRLF_PING; }
836
-<INITIAL>{TCP_OPT_ACCEPT_NO_CL}	{ count(); yylval.strval=yytext;
837
-									return TCP_OPT_ACCEPT_NO_CL; }
838
-<INITIAL>{TCP_CLONE_RCVBUF}		{ count(); yylval.strval=yytext;
839
-									return TCP_CLONE_RCVBUF; }
840
-<INITIAL>{DISABLE_TLS}	{ count(); yylval.strval=yytext; return DISABLE_TLS; }
841
-<INITIAL>{ENABLE_TLS}	{ count(); yylval.strval=yytext; return ENABLE_TLS; }
842
-<INITIAL>{TLSLOG}		{ count(); yylval.strval=yytext; return TLS_PORT_NO; }
843
-<INITIAL>{TLS_PORT_NO}	{ count(); yylval.strval=yytext; return TLS_PORT_NO; }
844
-<INITIAL>{TLS_METHOD}	{ count(); yylval.strval=yytext; return TLS_METHOD; }
845
-<INITIAL>{TLS_VERIFY}	{ count(); yylval.strval=yytext; return TLS_VERIFY; }
846
-<INITIAL>{TLS_REQUIRE_CERTIFICATE}	{ count(); yylval.strval=yytext;
847
-										return TLS_REQUIRE_CERTIFICATE; }
848
-<INITIAL>{TLS_CERTIFICATE}	{ count(); yylval.strval=yytext;
849
-										return TLS_CERTIFICATE; }
850
-<INITIAL>{TLS_PRIVATE_KEY}	{ count(); yylval.strval=yytext;
851
-										return TLS_PRIVATE_KEY; }
852
-<INITIAL>{TLS_CA_LIST}	{ count(); yylval.strval=yytext;
853
-										return TLS_CA_LIST; }
854
-<INITIAL>{TLS_HANDSHAKE_TIMEOUT}	{ count(); yylval.strval=yytext;
855
-										return TLS_HANDSHAKE_TIMEOUT; }
856
-<INITIAL>{TLS_SEND_TIMEOUT}	{ count(); yylval.strval=yytext;
857
-										return TLS_SEND_TIMEOUT; }
858
-<INITIAL>{DISABLE_SCTP}	{ count(); yylval.strval=yytext; return DISABLE_SCTP;}
859
-<INITIAL>{ENABLE_SCTP}	{ count(); yylval.strval=yytext; return ENABLE_SCTP;}
860
-<INITIAL>{SCTP_CHILDREN}	{ count(); yylval.strval=yytext;
861
-										return SCTP_CHILDREN; }
862
-<INITIAL>{SERVER_SIGNATURE}	{ count(); yylval.strval=yytext; return SERVER_SIGNATURE; }
863
-<INITIAL>{SERVER_HEADER}	{ count(); yylval.strval=yytext; return SERVER_HEADER; }
864
-<INITIAL>{USER_AGENT_HEADER}	{ count(); yylval.strval=yytext; return USER_AGENT_HEADER; }
865
-<INITIAL>{REPLY_TO_VIA}	{ count(); yylval.strval=yytext; return REPLY_TO_VIA; }
866
-<INITIAL>{ADVERTISED_ADDRESS}	{	count(); yylval.strval=yytext;
867
-									return ADVERTISED_ADDRESS; }
868
-<INITIAL>{ADVERTISED_PORT}		{	count(); yylval.strval=yytext;
869
-									return ADVERTISED_PORT; }
870
-<INITIAL>{DISABLE_CORE}		{	count(); yylval.strval=yytext;
871
-									return DISABLE_CORE; }
872
-<INITIAL>{OPEN_FD_LIMIT}		{	count(); yylval.strval=yytext;
873
-									return OPEN_FD_LIMIT; }
874
-<INITIAL>{SHM_MEM_SZ}		{	count(); yylval.strval=yytext;
875
-									return SHM_MEM_SZ; }
876
-<INITIAL>{SHM_FORCE_ALLOC}		{	count(); yylval.strval=yytext;
877
-									return SHM_FORCE_ALLOC; }
878
-<INITIAL>{MLOCK_PAGES}		{	count(); yylval.strval=yytext;
879
-									return MLOCK_PAGES; }
880
-<INITIAL>{REAL_TIME}		{	count(); yylval.strval=yytext;
881
-									return REAL_TIME; }
882
-<INITIAL>{RT_PRIO}		{	count(); yylval.strval=yytext;
883
-									return RT_PRIO; }
884
-<INITIAL>{RT_POLICY}		{	count(); yylval.strval=yytext;
885
-									return RT_POLICY; }
886
-<INITIAL>{RT_TIMER1_PRIO}		{	count(); yylval.strval=yytext;
887
-									return RT_TIMER1_PRIO; }
888
-<INITIAL>{RT_TIMER1_POLICY}		{	count(); yylval.strval=yytext;
889
-									return RT_TIMER1_POLICY; }
890
-<INITIAL>{RT_TIMER2_PRIO}		{	count(); yylval.strval=yytext;
891
-									return RT_TIMER2_PRIO; }
892
-<INITIAL>{RT_TIMER2_POLICY}		{	count(); yylval.strval=yytext;
893
-									return RT_TIMER2_POLICY; }
894