Neels Hofmeyr | b455205 | 2019-10-21 03:00:26 +0200 | [diff] [blame] | 1 | test_sdp_termination() |
| 2 | |
| 3 | struct gsm_mncc: |
Andreas Eversberg | 934f43b | 2023-12-19 12:56:20 +0100 | [diff] [blame] | 4 | empty SDP: len=1896 sdplen=1046 sdp="\0" rc=0 |
Vadim Yanitskiy | c6921e5 | 2021-10-27 17:05:55 +0300 | [diff] [blame] | 5 | empty SDP, shortest possible: len=851 sdplen=1 sdp="\0" rc=0 |
| 6 | empty SDP, zero len: len=850 sdplen=0 sdp=- rc=-22 |
Andreas Eversberg | 934f43b | 2023-12-19 12:56:20 +0100 | [diff] [blame] | 7 | terminated SDP str: len=1896 sdplen=1046 sdp="Privacy is a desirable marketing option\0" rc=0 |
Vadim Yanitskiy | c6921e5 | 2021-10-27 17:05:55 +0300 | [diff] [blame] | 8 | terminated SDP str, shortest possible: len=890 sdplen=40 sdp="Privacy is a desirable marketing option\0" rc=0 |
| 9 | terminated SDP str, but len excludes nul: len=889 sdplen=39 sdp="Privacy is a desirable marketing option" rc=-22 |
| 10 | terminated SDP str, but len too short: len=873 sdplen=23 sdp="Privacy is a desirable " rc=-22 |
| 11 | len way too short: len=10 sdplen=-840 sdp=- rc=-22 |
| 12 | len zero: len=0 sdplen=-850 sdp=- rc=-22 |
Neels Hofmeyr | b455205 | 2019-10-21 03:00:26 +0200 | [diff] [blame] | 13 | |
| 14 | struct gsm_mncc_rtp: |
Pau Espin Pedrol | eeda9e1 | 2020-09-03 22:11:03 +0200 | [diff] [blame] | 15 | empty SDP: len=1168 sdplen=1024 sdp="\0" rc=0 |
| 16 | empty SDP, shortest possible: len=145 sdplen=1 sdp="\0" rc=0 |
| 17 | empty SDP, zero len: len=144 sdplen=0 sdp=- rc=-22 |
| 18 | terminated SDP str: len=1168 sdplen=1024 sdp="Privacy is a desirable marketing option\0" rc=0 |
| 19 | terminated SDP str, shortest possible: len=184 sdplen=40 sdp="Privacy is a desirable marketing option\0" rc=0 |
| 20 | terminated SDP str, but len excludes nul: len=183 sdplen=39 sdp="Privacy is a desirable marketing option" rc=-22 |
| 21 | terminated SDP str, but len too short: len=167 sdplen=23 sdp="Privacy is a desirable " rc=-22 |
| 22 | len way too short: len=10 sdplen=-134 sdp=- rc=-22 |
| 23 | len zero: len=0 sdplen=-144 sdp=- rc=-22 |