aboutsummaryrefslogtreecommitdiffstats
path: root/tests/osmo-pcap-test
AgeCommit message (Collapse)AuthorFilesLines
2023-09-12Bump version: 1.3.0.56-745c-dirty → 1.4.01.4.0Pau Espin Pedrol1-1/+1
Change-Id: I2f0d6617c89cff83b1937996006ffe7106db2557
2023-02-07Bump version: 1.2.0.114-3804-dirty → 1.3.01.3.0Pau Espin Pedrol1-1/+1
Change-Id: Id67541378193f22f924409f02301f0063aab639e
2022-10-03osmux: Replace deprecated osmux_xfrm_input_* APIs in examples & testsPau Espin Pedrol1-8/+7
Change-Id: I7f3f8d40f89ffdd135a73316ee60fd429ba2a5b0
2022-10-03tests/osmo-pcap/osmux: Replace deprecated API osmux_xfrm_output_init2()Pau Espin Pedrol1-4/+9
Replacing this one with the newer API was missed a few commits ago when this API was marked as deprectated. Do it now. Change-Id: Ia0958dfae951d82feafe427eff2112d327d3b0a4
2022-09-23tests/osmo-pcap-test/osmux_test: Fix return condition check for ↵Pau Espin Pedrol1-1/+1
osmux_xfrm_input() According to API doc and implementation, it never returns >1. Do as done in all other places where this API is used, that this check for >0. Change-Id: If23dfecb566f590b7a898356469df6e322f57653
2022-06-28Bump version: 1.1.0.14-d1ab-dirty → 1.2.01.2.0Pau Espin Pedrol1-1/+1
Change-Id: I5809e5c85af66db6174a182a936891fa6e1104c1
2021-02-23Bump version: 1.0.0.14-3e65-dirty → 1.1.01.1.02021q1Pau Espin Pedrol1-1/+1
Change-Id: I8e3be883113444251f5008c407e9f722d0dcd422
2019-11-20osmux_test: don't use color loggingNeels Hofmeyr1-0/+1
Change-Id: I7b0c8d311123f4fa0aeedf3938c8628a4442daf7
2019-05-17osmux: Extend osmux_out_handle and add new API to set rtp payload_typePau Espin Pedrol1-1/+1
Previously payload_type was always hardcoded to 98 for generated rtp packets from incoming osmux frame. Change-Id: I5cbeb494a8932953d9fd2dc24dacf8cd97fd84e4
2018-04-19osmux: Move examples and tests to use new output APIsPau Espin Pedrol1-6/+3
Change-Id: Ie69c427308eb7d81aedab7fbb71f1bdaf43f0275
2018-04-12tests: osmo-pcap-test: Fix pcap includes not found in old versionsPau Espin Pedrol2-2/+2
pcap/dlt.h only exists on newer versions of libpcap. On older versions, same defines are available in pcap/bpf.h, which in newer versions include pcap/dlt.h, so we are always fine include pcap/bpf.h. As a side note, there's a lots of comments in pcap/dlt.h stating that those symbols used to reside in pcap/bpf.h but were moved there at some point. Change-Id: I824671a415eb3f35f480c934b9780ff13510011a
2018-02-26test: osmo-pcap-test: Fix clock drift while replaying pcap filePau Espin Pedrol2-7/+26
In the previous implementation, the processing time was not being taken into account, which was implicitly added for each new packet to be sent, which caused a steady incremental drift in the clock clearly visible when analysing a RTP stream. As it uses timespecsub, it depends on libosmocore Change-Id I45fc993b9bb0a343763238bf463c8640f47b00f1. Change-Id: I11cb9a63e16e829ccd4af1096b9f473c802d822f
2017-08-08tests: osmo-pcap: Allow different l2 pktsPau Espin Pedrol9-50/+189
Before this patch, ETH was assumed and other types were not supported. This patch also adds Linux cooked packet support for L2. Change-Id: Ie62fa0a8e45e1e141edb64b116dad185ad9c7a5f
2017-08-08tests: osmo-pcap: Fix per packet timerPau Espin Pedrol2-7/+13
Before this commit, the gap time between 2 packets {n-1, n} was being applied to {n, n+1}. Change-Id: I715865c1edd1fc2ec9b024671d91eb72559cbdea
2016-10-01configure: check for pkg-config presenceNeels Hofmeyr1-0/+7
Change-Id: Ifaea95befa3d1d8f6f047e22efcd62cb0bd8b287
2014-10-02build: put dependency libraries in the right place in MakefilesJan Engelhardt1-1/+1
Libs must be in _LDADD/_LIBADD and not in _LDFLAGS.
2013-02-12fix osmux_test with pcap filePablo Neira Ayuso1-5/+5
2012-10-20osmux: remove generic functions to register and get ccidPablo Neira Ayuso1-4/+45
Remove these functions: - osmux_xfrm_input_get_ccid - osmux_xfrm_input_register_ccid The ccid will be managed by the BSC and it will be stored in the mgcp_endpoint structure. Also adjust all tests and examples using the API.
2012-10-15osmux: release of batch message is controled by callerPablo Neira Ayuso1-0/+1
Instead of internally released. This is required if we use the osmo_dgram infrastructure, to avoid a double release. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2012-08-06osmux: support two concurrent calls in output pathPablo Neira Ayuso1-4/+2
2012-08-06osmux: add infrastructure to map RTP SSRC and osmux CCIDPablo Neira Ayuso1-0/+9
2012-08-06osmux: batching factor can be explicitly configured by callerPablo Neira Ayuso1-0/+1
Not hardcoded in osmux.c code anymore.
2012-08-06osmux: store internal batching information in struct osmux_in_handlePablo Neira Ayuso1-1/+1
The layout is not provided, as it is internal. Thus, we don't allocate the internal batching information in BSS anymore.
2012-08-04osmux: remove timeval parameter from osmux_tx_schedPablo Neira Ayuso1-4/+1
We can internal allocate this in the stack, no need to expose it to the caller.
2012-08-04osmux: cleanup tx pathPablo Neira Ayuso1-20/+5
This patch cleans up the transmission path for osmux, this involves the functions that extract the messages from the batch and the one that reconstruct the timing. They now take a list that contains the reconstructed RTP messages: osmux_xfrm_output(osmuxh, &h_output, &list); osmux_tx_sched(&list, &tv, tx_cb, NULL);
2012-08-04fix wrong delta between two RTP messagesPablo Neira Ayuso1-1/+1
it should 20 ms, not 160 ms. Thanks for Holger for spotting this.
2012-08-02osmux: major rework to reduce batch message size (add counter field)Pablo Neira Ayuso1-0/+10
This patch adds the counter field to the osmux header, so we can reduce the size of the batch even further, eg. osmuxhdr (ctr=3) speech speech speech osmuxhdr (ctr=2) speech speech ... The new header is the following: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FT | CTR |F|Q| SeqNR | Circuit ID |AMR-FT |AMR-CMR| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The counter field is 3 bits long, thus, we can batch up to 8 RTP speech frames into one single batch per circuit ID. I have also removed the RTP marker, since it can be reconstructed from the AMR information. Moreover, the entire workflow has been also reworked. Whenever a packet arrives, we introduce it into the batch list. This batch list contains a list of RTP messages ordered by RTP SSRC. Then, once the batch timer expires or the it gets full, we build the batch from the list of RTP messages. Note that this allows us to put several speech frame into one single osmux header without actually worrying about the amount of messages that we'll receive. The functions that reconstruct the RTP messages has been also adjusted. Now, it returns a list of RTP messages per RTP SSRC that has been extracted from the batch.
2012-08-02tests: osmux: initialize input handler before first runPablo Neira Ayuso1-2/+2
Make sure we don't segfault due to uninitiliazed handler.
2012-08-02tests: osmo-pcap: callback control the release of the emulated packetPablo Neira Ayuso1-2/+0
The callback is now in charge of releasing the packet.
2012-08-02tests: osmo-pcap: cleanup for osmux test receiver loopPablo Neira Ayuso1-11/+7
2012-07-19tests: osmo-pcap: use logging infrastructurePablo Neira Ayuso1-0/+26
so far, it was missing and printf was used instead of the generic logging infrastructure that osmocom provides.
2012-07-19tests: osmo-pcap: split packet replay from osmux_test codePablo Neira Ayuso4-118/+189
This patch splits in two files the code that contains the packet replay based on PCAP from the osmux test.
2012-07-19tests: osmo-pcap: adapt it to use new osmux_tx_schedPablo Neira Ayuso1-3/+19
Adapt the test to use the function that allows reconstructing the RTP timing sequence.
2012-07-12tests: osmo-pcap: test osmux functionsPablo Neira Ayuso1-4/+45
2012-07-12osmo-pcap-test: add -g compilation for debugging (valgrind) and use -losmonetifPablo Neira Ayuso2-2/+3
2012-07-04tests: osmo-pcap: fix bad UDP header calculationPablo Neira Ayuso1-3/+1
Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2012-06-28test: add osmo-pcap-test infrastructurePablo Neira Ayuso12-0/+498
This patch adds the osmo-pcap-test infrastructure that allows you to take packets stored in one pcap file, convert them to msgb and pass it to some function. The infrastructure also provides timing reconstruction based on the pcap file information. This is useful for easy protocol development, automated testing and fuzzying of the existing code to validate the code. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>