TT#146201 update/fix kernel module test script

Update to latest changes to make it work again

Change-Id: Ic9871c3ffa5b8d2ad9eadc1eea351e23a64b9bd0
pull/1611/head
Richard Fuchs 3 years ago
parent b28794f853
commit 858a9db2c2

@ -9,6 +9,7 @@ int main(void) {
assert(ret == 0);
struct rtpengine_target_info reti;
struct rtpengine_destination_info redi;
reti = (struct rtpengine_target_info) {
.local = {
@ -22,16 +23,7 @@ int main(void) {
.port = 5555,
},
.src_mismatch = MSM_IGNORE,
.src_addr = {
.family = AF_INET,
.u.ipv4 = htonl(0x7f000001),
.port = 6666,
},
.dst_addr = {
.family = AF_INET,
.u.ipv4 = htonl(0x7f000001),
.port = 7777,
},
.num_destinations = 1,
.decrypt = {
.cipher = REC_AEAD_AES_GCM_256,
.hmac = REH_NULL,
@ -48,6 +40,43 @@ int main(void) {
0xc5, 0xd5, 0x69, 0x14, 0x90, 0x6a, 0x15, 0xfc, 0x52, 0x7b, 0x0a, 0xdb
},
},
.rtp = 1,
.rtcp_mux = 1,
.dtls = 1,
.stun = 1,
.ssrc = { 0x12345678, 0, },
.num_payload_types = 8,
.pt_input = {
{ 97, 90000, },
{ 98, 90000, },
{ 120, 90000, },
{ 121, 90000, },
{ 124, 90000, },
{ 125, 90000, },
{ 126, 90000, },
{ 127, 90000, },
{ 0, },
},
};
redi = (struct rtpengine_destination_info) {
.local = {
.family = AF_INET,
.u.ipv4 = htonl(0x7f000001),
.port = 4444,
},
.num = 0,
.output = {
.src_addr = {
.family = AF_INET,
.u.ipv4 = htonl(0x7f000001),
.port = 6666,
},
.dst_addr = {
.family = AF_INET,
.u.ipv4 = htonl(0x7f000001),
.port = 7777,
},
.encrypt = {
.cipher = REC_AEAD_AES_GCM_256,
.hmac = REH_NULL,
@ -64,31 +93,35 @@ int main(void) {
0xc5, 0xd5, 0x69, 0x14, 0x90, 0x6a, 0x15, 0xfc, 0x52, 0x7b, 0x0a, 0xdb
},
},
.rtp = 1,
.rtcp_mux = 1,
.dtls = 1,
.stun = 1,
.ssrc = 0x12345678,
.ssrc_out = 0x54321,
.num_payload_types = 8,
.payload_types = { 97, 98, 120, 121, 124, 125, 126, 127, 0, },
.clock_rates = { 90000, 90000, 90000, 90000, 90000, 90000, 90000, 90000, 0, },
.ssrc_out = { 0x54321, 0, },
},
};
ret = kernel_add_stream(&reti);
assert(ret == 0);
ret = kernel_add_destination(&redi);
assert(ret == 0);
reti.local.port = 4446;
redi.local.port = 4446;
ret = kernel_add_stream(&reti);
assert(ret == 0);
ret = kernel_add_destination(&redi);
assert(ret == 0);
reti.local.port = 4448;
redi.local.port = 4448;
ret = kernel_add_stream(&reti);
assert(ret == 0);
ret = kernel_add_destination(&redi);
assert(ret == 0);
reti.local.port = 4450;
redi.local.port = 4450;
ret = kernel_add_stream(&reti);
assert(ret == 0);
ret = kernel_add_destination(&redi);
assert(ret == 0);
return 0;
}

Loading…
Cancel
Save