aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-pcap/osmo_pcap_client.h
AgeCommit message (Collapse)AuthorFilesLines
2018-10-08client: Add pcap snaplen VTY cmdPau Espin Pedrol1-0/+2
Change-Id: I84fda9f27b725e031c218187ab679392dfa7ec3d
2018-02-09Add support for generating IPIP to osmo-pcap-clientHarald Welte1-0/+6
This allows the user to change the configuration between either using a) the classic OsmoPCAP protocol (over TCP with or without TLS) which is used when you want to talk to an osmo-pcap-server b) the (new) IPIP encapsulation, which will simply take the IP packet (without Ethernet or pcap header) and transmit it inside IPIP to the specified server IP address. This is useful for gettin real-time streaming into wireshark. Change-Id: I8056fc163ac2f15adcb964d867dd5e51df4e4710
2017-01-17client: Allow to bind to a specific source_ipHolger Hans Peter Freyther1-0/+1
Modify the osmo_sock_init (code clone to be integrated upstream) to allow binding to a specific source ip and source port. Allow the source ip to be configured but allow the kernel to pick a random port for us. This is necessary for systems with multiple interfaces where the default route is not necessarily the right one to connect to the pcap server. Change-Id: I84e728b0752213d28f970fcbbfd6565c441ccfeb
2016-11-09client: Allow to stop and remove a connectionHolger Hans Peter Freyther1-0/+3
Change-Id: I2118723345caf6a68f03de74a4182506e7bf105c
2016-11-09client: Allow to configure and connect multiple serversHolger Hans Peter Freyther1-0/+5
Allow to configure multiple servers and connect. Introduce a new VTY node to allow multiple servers. Add an explicit connect. Do not put the main connection into the same list but assume it exists. Change-Id: I9448ad4a005dd7c7eb1c615d03e57d6cb058ae4d
2016-11-09client: Prepare to work with a list of serversHolger Hans Peter Freyther1-0/+4
There is no VTY code yet and no servers in the list but it looks good client this. Change-Id: Ic35748f1a95a880a9fa49dd18361592d8ac941ba
2016-11-09client: Prepare to have multiple server connectionsHolger Hans Peter Freyther1-20/+27
Take out various fields into a new connection class. We will have the option to connect to multiple servers. Change-Id: I820176d133fbdb0240a16eb4e1a6d505e5c080c6
2016-09-08client: Initial support for TLS in the clientHolger Hans Peter Freyther1-0/+16
Use GNUtls because it is GPL compatible and instead of mbedTLS seems to have a working non-blocking I/O integration. GNUtls has various issues that could not be resolved easily: * Pick spdy as sub protocol * gmt_time not randomized * private key loaded to RAM (but not verified) This is the beginning and not the end. Client support might need more work with actual tls verification. Maybe more manual x509 cert verification is needed and maybe client certs don't work at all. I try to ignore renegotiation as I threw away the key. Reload x509 creds and keys as they might have changed from one connection to another. Change-Id: I9128e14084da1fc2705f858393f98b8133996172
2016-09-08client: Add API function to close and re-connect network connectionHolger Hans Peter Freyther1-0/+2
Change-Id: Ib4e17948ffa84e73c1c81734e6002a73251d744b
2016-08-19client: Use pcap_stats and export them as statisticsHolger Hans Peter Freyther1-0/+8
Attempt to write code that detects the wrap and is doing the right thing when it happens. Change-Id: I501ebc49d3e86b0605ec1fbe2f62aee3f362aa36
2016-08-19client: Additional counters for the statisticsHolger Hans Peter Freyther1-0/+2
Add more counters and start counting them when reading from the PCAP library and when trying to write to the socket. Change-Id: I52d3064a265b402ac849d8578a14f718156c0805
2016-08-18client: First round of statistics in the pcap clientHolger Hans Peter Freyther1-1/+14
Count certain events that can help to understand what is going on. This includes OOM, failure to queues. Change-Id: I4a2dad32afb577822c7181d2813ea5a7e693c704
2015-09-10gprs: Add a custom GPRS filterHolger Hans Peter Freyther1-0/+1
Allow to inspect UDP messages and check for GPRS, NS, BSSGP and then filter LLC frames. Parsing the vL datastructure with the libpcap syntax is a pain. It could be done using BPF but we do not want to use bpf asm to specify the entire ruleset. I looked into using libepan/libwireshark but this has memory issues and is painful too. So let's parse UDP, NS, BSSGP using the info we already have. I tried a bit of editcap to generate a bit of broken data. The length check might still be bad. I used my crash_20100602.pcap file to count the LLC frames we detect and compare that to wireshark it ended with the right number. pcap add-filter gprs can be used to enable the new filtering option after the OS has received the packet. Fixes: ONW#1314
2011-05-31osmo-pcap-client: Connect to a server, send the data to itHolger Hans Peter Freyther1-1/+10
2011-05-31osmo-pcap-client: Set the filter string on the pcap device..Holger Hans Peter Freyther1-1/+1
2011-05-31osmo-pcap-client: Work on the client code, be able to open the deviceHolger Hans Peter Freyther1-1/+15
Add vty code to allow changing the device, this will just attempt to open and close the device. Nothing else is done.
2011-05-31osmo_pcap_client: Start with the framework for the pcap clientHolger Hans Peter Freyther1-0/+34
This is just the normal skeleton for the osmocom code.