From 3f00a9b95f2536cc4959eb87403d2e2a26272850 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 12 Feb 2013 19:49:57 +0100 Subject: fix osmux_test with pcap file --- tests/osmo-pcap-test/osmux_test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/osmo-pcap-test') diff --git a/tests/osmo-pcap-test/osmux_test.c b/tests/osmo-pcap-test/osmux_test.c index 4554430..463b212 100644 --- a/tests/osmo-pcap-test/osmux_test.c +++ b/tests/osmo-pcap-test/osmux_test.c @@ -31,6 +31,8 @@ #include "osmo_pcap.h" +#define DOSMUXTEST 0 + /* * This is the output handle for osmux, it stores last RTP sequence and * timestamp that has been used. There should be one per circuit ID. @@ -75,7 +77,7 @@ struct osmux_in_handle h_input = { #define MAX_CONCURRENT_CALLS 8 -static int ccid[MAX_CONCURRENT_CALLS]; +static int ccid[MAX_CONCURRENT_CALLS] = { -1, -1, -1, -1, -1, -1, -1, -1 }; static void register_ccid(uint32_t ssrc) { @@ -122,9 +124,9 @@ static int pcap_test_run(struct msgb *msg) if (rtph == NULL) return 0; - ccid = get_ccid(&h_input, rtph->ssrc); + ccid = get_ccid(rtph->ssrc); if (ccid < 0) - register_ccid(&h_input, rtph->ssrc); + register_ccid(rtph->ssrc); while ((ret = osmux_xfrm_input(&h_input, msg, ccid)) > 1) { /* batch full, deliver it */ @@ -148,8 +150,6 @@ static void osmo_pcap_pkt_timer_cb(void *data) } } -#define DOSMUXTEST 0 - struct log_info_cat osmux_test_cat[] = { [DOSMUXTEST] = { .name = "DOSMUXTEST", -- cgit v1.2.3