osmo-bsc/openbsc/tests/mgcp
Harald Welte ae1997248c mgcp: implement a more tolerant parser based on strtok_r()
Instead of building complex manual byte-wise parsers, we simply use two
strtok_r loops:  one iterating over all the lines, the next one
iterating over the invididual space-separated elements in the first line.

The benefit is that we now accept \r, \n or \r\n, or any multiple of
them as line ending.  This works around incompliant MGCP implementations
like that of Zynetix MSC.

Addition: mgcp_analyze_header returns 0 when all out parameters have
been set.

Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
2012-03-16 10:24:18 +01:00
..
Makefile.am tests: Introduce running tests with GNU autotest in OpenBSC 2012-01-06 18:52:05 +01:00
mgcp_test.c mgcp_test: Add wrong messages as input and check what happens 2012-03-16 10:21:29 +01:00
mgcp_test.ok mgcp: implement a more tolerant parser based on strtok_r() 2012-03-16 10:24:18 +01:00