[sr-dev] git:master: sctp cfg: fix -1 not allowed in some cfg options

Andrei Pelinescu-Onciul andrei at iptel.org
Sat Jun 27 14:45:03 CEST 2009


Module: sip-router
Branch: master
Commit: fbf689cce16836c91f684bca59ac2e6cd90a7fac
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fbf689cce16836c91f684bca59ac2e6cd90a7fac

Author: Andrei Pelinescu - Onciul <andrei at sfantu-petru.ultima>
Committer: Andrei Pelinescu - Onciul <andrei at sfantu-petru.ultima>
Date:   Sat Jun 27 14:35:59 2009 +0200

sctp cfg: fix -1 not allowed in some cfg options

-1 is now allowed in sctp_hbinterval and sctp_max_assocs.

---

 cfg.y |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cfg.y b/cfg.y
index 6bbd06f..487fadb 100644
--- a/cfg.y
+++ b/cfg.y
@@ -1300,7 +1300,7 @@ assign_stm:
 		#endif /* USE_SCTP */
 	}
 	| SCTP_ASSOC_REUSE EQUAL error { yyerror("number expected"); }
-	| SCTP_MAX_ASSOCS EQUAL NUMBER {
+	| SCTP_MAX_ASSOCS EQUAL intno {
 			IF_SCTP(sctp_default_cfg.max_assocs=$3);
 	}
 	| SCTP_MAX_ASSOCS EQUAL error { yyerror("number expected"); }
@@ -1328,7 +1328,7 @@ assign_stm:
 			IF_SCTP(sctp_default_cfg.init_max_timeo=$3);
 	}
 	| SCTP_INIT_MAX_TIMEO EQUAL error { yyerror("number expected"); }
-	| SCTP_HBINTERVAL EQUAL NUMBER {
+	| SCTP_HBINTERVAL EQUAL intno {
 			IF_SCTP(sctp_default_cfg.hbinterval=$3);
 	}
 	| SCTP_HBINTERVAL EQUAL error { yyerror("number expected"); }




More information about the sr-dev mailing list