Browse code

SCTP protocol name support in ser.cfg

- added missing support for SCTP in proto=..., listen a.s.o

Andrei Pelinescu-Onciul authored on 18/08/2008 14:47:33
Showing 2 changed files
... ...
@@ -367,6 +367,7 @@ NO			"no"|"false"|"off"|"disable"
367 367
 UDP			"udp"|"UDP"
368 368
 TCP			"tcp"|"TCP"
369 369
 TLS			"tls"|"TLS"
370
+SCTP		"sctp"|"SCTP"
370 371
 INET		"inet"|"INET"
371 372
 INET6		"inet6"|"INET6"
372 373
 SSLv23			"sslv23"|"SSLv23"|"SSLV23"
... ...
@@ -758,6 +759,7 @@ EAT_ABLE	[\ \t\b\r]
758 758
 <INITIAL>{TCP}			{ count(); return TCP; }
759 759
 <INITIAL>{UDP}			{ count(); return UDP; }
760 760
 <INITIAL>{TLS}			{ count(); return TLS; }
761
+<INITIAL>{SCTP}			{ count(); return SCTP; }
761 762
 <INITIAL>{INET}			{ count(); yylval.intval=AF_INET; return NUMBER; }
762 763
 <INITIAL>{INET6}		{ count();
763 764
 						#ifdef USE_IPV6
... ...
@@ -274,6 +274,7 @@ static struct socket_id* mk_listen_id(char*, int, int);
274 274
 %token UDP
275 275
 %token TCP
276 276
 %token TLS
277
+%token SCTP
277 278
 
278 279
 /* config vars. */
279 280
 %token DEBUG_V
... ...
@@ -553,6 +554,7 @@ proto:
553 553
 	UDP	{ $$=PROTO_UDP; }
554 554
 	| TCP	{ $$=PROTO_TCP; }
555 555
 	| TLS	{ $$=PROTO_TLS; }
556
+	| SCTP	{ $$=PROTO_SCTP; }
556 557
 	| STAR	{ $$=0; }
557 558
 	;
558 559
 port: