diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2013-02-12 19:49:57 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2013-02-12 19:49:57 +0100 |
commit | 3f00a9b95f2536cc4959eb87403d2e2a26272850 (patch) | |
tree | f4e546c7244c28ffad181f8938d315f219105000 /tests/osmo-pcap-test | |
parent | 92601d0a20990209c085723d94bf7d636fa9186d (diff) |
fix osmux_test with pcap file
Diffstat (limited to 'tests/osmo-pcap-test')
-rw-r--r-- | tests/osmo-pcap-test/osmux_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
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", |