path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2016-09-08client: Initial support for TLS in the clientHolger Hans Peter Freyther4-1/+83
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-19server: Add global and per client counters and begin to countHolger Hans Peter Freyther1-1/+26
Add the basics for getting a picture what a client and the server is doing. We need to create unique descriptions as the code is working with names and not numbers for clients. Change-Id: I4a9be5bdd815d280cccf0199efc2ca79fc77d393
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
2016-08-13vty: Fix compiler warning about type changesHolger Hans Peter Freyther1-1/+1
osmo_client_main.c:57:2: warning: initialization from incompatible pointer type .go_parent_cb = osmopcap_go_parent, ^ osmo_client_main.c:57:2: warning: (near initialization for ‘vty_info.go_parent_cb’) CCLD osmo_pcap_client CC osmo_server_main.o osmo_server_main.c:56:2: warning: initialization from incompatible pointer type .go_parent_cb = osmopcap_go_parent, ^ osmo_server_main.c:56:2: warning: (near initialization for ‘vty_info.go_parent_cb’) Change-Id: If73c85a64789ef4bff63dcfe008e918e650b428f
2016-08-05server: Add zmq based event and data interface to the serverHolger Hans Peter Freyther1-0/+2
To allow easily extracting or streaming the data to an external analysis system, zeromq can be configured (and reconfigured). The system works as fire and forget and no loss detection is present. A simple go based client application is provided to subscribe to the publisher. Change-Id: I4f3e6d675023a81b7d2ee19bf1f44a2be0ca003c
2016-08-04server: Add zmq interface for publishing eventsHolger Hans Peter Freyther1-0/+6
Change-Id: I383558bb9aad3cb149f35e13910a1d6aa79afc84
2016-08-04server: Add a config knob to not store the pcap streamHolger Hans Peter Freyther1-0/+1
We might only want to centralize the data streams but handle the data differently. This will be combined with an upcoming ZeroMQ publisher feature to broadcast all events out. Change-Id: I12c6bf16310820d882fa28c6930931650475e0bb
2015-12-03client: Deal with external representation for pcap filesHolger Hans Peter Freyther1-0/+12
We need to convert the 64bit timeval on a 64bit userspace (or on OpenBSD) into a 32bit truncated value for being able to write the file. This means we have 2038 issue here?
2015-12-03server: Deal with jumbo frames on the wireHolger Hans Peter Freyther1-1/+5
The 2000 as a number is too small. Modern networks can have a higher MTU (up to 9000). Take this number and assume there is a big header in front of it.
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
2012-01-06dist: Attempt to fix the make distcheckHolger Hans Peter Freyther1-1/+1
2012-01-06dist: Attempt to fix the make distcheckHolger Hans Peter Freyther1-1/+1
2011-07-19server: Register signal handler to reopen logfiles on SIGHUPDaniel Willmann1-0/+2
2011-06-01osmo-pcap-server: Try to read the the data with a simple state machineHolger Hans Peter Freyther1-0/+10
2011-06-01wireformat: Send the length in the network order..Holger Hans Peter Freyther1-2/+2
this is a format change. but it is necessary now.
2011-06-01osmo-pcap-server: Prepare a file limit, initialize the base pathHolger Hans Peter Freyther1-0/+1
2011-05-31osmo-pcap-server: Accept the client connection from a given hostHolger Hans Peter Freyther1-0/+8
We now read from a given system.
2011-05-31osmo-pcap-server: Work on the generic VTY interface for the serverHolger Hans Peter Freyther1-0/+3
Work on being able to configure clients that are allowed to connect to the server.
2011-05-31osmo-pcap-server: Start with the skeleton of the pcap serverHolger Hans Peter Freyther1-0/+67
2011-05-31osmo-pcap-client: Connect to a server, send the data to itHolger Hans Peter Freyther2-1/+56
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 Freyther3-1/+85
This is just the normal skeleton for the osmocom code.
2011-05-31osmo-pcap: Create a dummy client.Holger Hans Peter Freyther2-0/+2