aboutsummaryrefslogtreecommitdiffstats
path: root/tests/osmo-pcap-test
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-08-06 20:15:46 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-08-06 21:04:25 +0200
commit72a0aae500de36ef3fa528a9ce2e32a8ddde5080 (patch)
tree295a512f9809226398b65241e3fc72392ee46530 /tests/osmo-pcap-test
parentb9cf903bbe0cd9b84a1226c345e68f0e826034e9 (diff)
osmux: support two concurrent calls in output path
Diffstat (limited to 'tests/osmo-pcap-test')
-rw-r--r--tests/osmo-pcap-test/osmux_test.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/osmo-pcap-test/osmux_test.c b/tests/osmo-pcap-test/osmux_test.c
index 8dab1bf..541665a 100644
--- a/tests/osmo-pcap-test/osmux_test.c
+++ b/tests/osmo-pcap-test/osmux_test.c
@@ -35,10 +35,7 @@
* 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.
*/
-static struct osmux_out_handle h_output = {
- .rtp_seq = 1000,
- .rtp_timestamp = 10,
-};
+static struct osmux_out_handle h_output;
static void tx_cb(struct msgb *msg, void *data)
{
@@ -154,6 +151,7 @@ int main(int argc, char *argv[])
osmo_pcap.timer.cb = osmo_pcap_pkt_timer_cb;
osmux_xfrm_input_init(&h_input);
+ osmux_xfrm_output_init(&h_output);
/* first run */
osmo_pcap_pkt_timer_cb(NULL);