blob: ca3ac64840185c59f047405607ec1f882e1cdf2f [file] [log] [blame]
Neels Hofmeyrb4552052019-10-21 03:00:26 +02001test_sdp_termination()
2
3struct gsm_mncc:
Andreas Eversberg934f43b2023-12-19 12:56:20 +01004empty SDP: len=1896 sdplen=1046 sdp="\0" rc=0
Vadim Yanitskiyc6921e52021-10-27 17:05:55 +03005empty SDP, shortest possible: len=851 sdplen=1 sdp="\0" rc=0
6empty SDP, zero len: len=850 sdplen=0 sdp=- rc=-22
Andreas Eversberg934f43b2023-12-19 12:56:20 +01007terminated SDP str: len=1896 sdplen=1046 sdp="Privacy is a desirable marketing option\0" rc=0
Vadim Yanitskiyc6921e52021-10-27 17:05:55 +03008terminated SDP str, shortest possible: len=890 sdplen=40 sdp="Privacy is a desirable marketing option\0" rc=0
9terminated SDP str, but len excludes nul: len=889 sdplen=39 sdp="Privacy is a desirable marketing option" rc=-22
10terminated SDP str, but len too short: len=873 sdplen=23 sdp="Privacy is a desirable " rc=-22
11len way too short: len=10 sdplen=-840 sdp=- rc=-22
12len zero: len=0 sdplen=-850 sdp=- rc=-22
Neels Hofmeyrb4552052019-10-21 03:00:26 +020013
14struct gsm_mncc_rtp:
Pau Espin Pedroleeda9e12020-09-03 22:11:03 +020015empty SDP: len=1168 sdplen=1024 sdp="\0" rc=0
16empty SDP, shortest possible: len=145 sdplen=1 sdp="\0" rc=0
17empty SDP, zero len: len=144 sdplen=0 sdp=- rc=-22
18terminated SDP str: len=1168 sdplen=1024 sdp="Privacy is a desirable marketing option\0" rc=0
19terminated SDP str, shortest possible: len=184 sdplen=40 sdp="Privacy is a desirable marketing option\0" rc=0
20terminated SDP str, but len excludes nul: len=183 sdplen=39 sdp="Privacy is a desirable marketing option" rc=-22
21terminated SDP str, but len too short: len=167 sdplen=23 sdp="Privacy is a desirable " rc=-22
22len way too short: len=10 sdplen=-134 sdp=- rc=-22
23len zero: len=0 sdplen=-144 sdp=- rc=-22