Holger Hans Peter Freyther
d5cbb675a9
pcap-client: Hacks to compile with an old libosmocore
...
We are running a system where we do not want to upgrade
libosmocore right now. Compile the osmo-pcap-client with
a libosmocore from around January.
2011-08-05 18:02:47 +02:00
Holger Hans Peter Freyther
b4fc89bfcf
smatch: Check the client->device variable
...
This is fixing:
src/osmo_client_core.c +105 osmo_client_capture(8) warn: variable dereferenced before check 'client'
2011-07-19 17:59:00 +02:00
Holger Hans Peter Freyther
cae1b7c960
misc: Remove process.h include, osmo_daemonize is in application.h now
2011-07-19 17:56:52 +02:00
Daniel Willmann
b000368ad6
Catch up with API change in osmo_sock_init
...
The connect0_bind1 parameter has been replaced by a generic flag
parameter. With this patch osmo-pcap works (only) with versions of
libosmocore 0.3.2 or newer - configure.ac changed to reflects that.
2011-07-19 17:56:09 +02:00
Daniel Willmann
c7401c6c23
server: Register signal handler to reopen logfiles on SIGHUP
2011-07-19 17:56:07 +02:00
Daniel Willmann
de77386d84
server: Fix memory leak and error handling in restart_pcap
2011-07-19 17:56:03 +02:00
Holger Hans Peter Freyther
f60990e3f4
server: Allow the group to read the files too
2011-06-10 15:29:46 +02:00
Holger Hans Peter Freyther
dea9e8bbfe
server: Make the maximum file size configurable
2011-06-10 15:23:04 +02:00
Holger Hans Peter Freyther
91eaae33ea
osmo-pcap-server: Read the header in pieces too...
2011-06-02 17:58:46 +02:00
Holger Hans Peter Freyther
39d904f149
osmo-pcap-server: Try to read the the data with a simple state machine
2011-06-01 18:49:07 +02:00
Holger Hans Peter Freyther
9df7dc5f69
wireformat: Send the length in the network order..
...
this is a format change. but it is necessary now.
2011-06-01 17:34:09 +02:00
Holger Hans Peter Freyther
59bfb5854d
osmo-server-network: Print the size of the packet.
...
Fix a typo, print the data we received and what we wanted.
2011-06-01 17:00:12 +02:00
Holger Hans Peter Freyther
b1f5d5ebed
osmo-client-core: Use the >= 0 handling.
2011-06-01 16:57:25 +02:00
Holger Hans Peter Freyther
afcc2ae172
osmo-pcap-server: Indent the port properly
2011-06-01 16:33:55 +02:00
Holger Hans Peter Freyther
54ff0b1b86
osmo-pcap-server: Just check for >= 0 to find a valid fd
2011-06-01 16:33:11 +02:00
Holger Hans Peter Freyther
dc3d1dcd59
osmo-pcap-server: Initialize local_fd with -1 otherwise
2011-06-01 16:32:29 +02:00
Holger Hans Peter Freyther
e6acfea051
osmo-pcap-server: Deal with systems not providing these macros
2011-06-01 15:31:50 +02:00
Holger Hans Peter Freyther
0391b0a9c3
osmo-client-core: Work with older pcap libraries
2011-06-01 15:31:11 +02:00
Holger Hans Peter Freyther
7309a906d0
osmo-pcap-server: Write the pcap files to disk, roll them over
2011-06-01 14:09:26 +02:00
Holger Hans Peter Freyther
88c07f2b7e
osmo-pcap-server: Prepare a file limit, initialize the base path
2011-06-01 14:02:54 +02:00
Holger Hans Peter Freyther
80b8b606c5
osmo-pcap-server: Accept the client connection from a given host
...
We now read from a given system.
2011-05-31 23:42:48 +02:00
Holger Hans Peter Freyther
9f6127f592
osmo-pcap-server: Work on the generic VTY interface for the server
...
Work on being able to configure clients that are allowed to
connect to the server.
2011-05-31 23:42:48 +02:00
Holger Hans Peter Freyther
13619dd235
osmo-pcap-server: Start with the skeleton of the pcap server
2011-05-31 23:42:48 +02:00
Holger Hans Peter Freyther
77288207fa
osmo-pcap-client: Connect to a server, send the data to it
2011-05-31 21:19:52 +02:00
Holger Hans Peter Freyther
cd2d3db3b7
osmo-pcap-client: Set the filter string on the pcap device..
2011-05-31 21:19:51 +02:00
Holger Hans Peter Freyther
bac0c98d22
osmo-pcap-client: Do not print the strings if they are NULL
...
this makes glibc add the (null) for us, but we don't want that
as we would attempt to compile a filter or open a device with that.
2011-05-31 17:55:45 +02:00
Holger Hans Peter Freyther
3b9b38ca68
osmo-pcap-client: Work on the client code, be able to open the device
...
Add vty code to allow changing the device, this will just attempt
to open and close the device. Nothing else is done.
2011-05-31 17:42:53 +02:00
Holger Hans Peter Freyther
47169baa6e
common: Add the default case, e.g. needed for the logging code
2011-05-31 17:42:53 +02:00
Holger Hans Peter Freyther
530ecc0879
osmo_pcap_client: Start with the framework for the pcap client
...
This is just the normal skeleton for the osmocom code.
2011-05-31 15:47:44 +02:00
Holger Hans Peter Freyther
430366a2c5
osmo-pcap: Create a dummy client.
2011-05-31 11:16:55 +02:00