Harald Welte
67881aef23
I used the construct like f_rnd_octstring(f_rnd_int(100)) in a number of places to generate random-length packets with randomized length. The problem I didn't realize is that f_rnd_int() of course can also return '0', which would generate zero-length packets. This may be permitted in some protocols, but it leads to problems e.g. when trying to send a UDP packet of zero length (which the kernel will not do). So let's introduce * f_rnd_int_nonzero() for returning non-zero randomized integers * f_rnd_octstring_rnd_len() for returning a random-length random payload octet string * replace all f_rnd_octstring(f_rnd_int()) call sites with the new function. Change-Id: I818a113ff8d2a2f7cab2ec7d9c8661607c6331d6 Closes: OS#5528 |
||
---|---|---|
.. | ||
README.md | ||
STP_Tests.cfg | ||
STP_Tests.default | ||
STP_Tests.ttcn | ||
STP_Tests_Common.ttcn | ||
STP_Tests_IPA.ttcn | ||
STP_Tests_M3UA.ttcn | ||
gen_links.sh | ||
osmo-stp.cfg | ||
regen_makefile.sh |
README.md
STP_Tests.ttcn
- external interfaces
- M3UA/SCTP (can emulate both client and server side)
- IPA (can emulate both client and server side)
- VTY
{% dot sip_tests.svg digraph G { rankdir=LR; STP [label="IUT\nosmo-stp",shape="box"]; ATS [label="ATS\nSTP_Tests.ttcn"];
ATS -> STP [label="M3UA", dir="both"]; ATS -> STP [label="IPA", dir="both"]; ATS -> STP [label="VTY"]; } %}