Holger Hans Peter Freyther
c016b5d382
Make a new release with 64bit client fixes
2015-12-03 22:17:26 +01:00
Holger Hans Peter Freyther
66b80cc8f5
client: Deal with external representation for pcap files
...
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-03 22:13:38 +01:00
Holger Hans Peter Freyther
fbdcf593f8
debian: Make a new release
2015-12-03 20:41:28 +01:00
Holger Hans Peter Freyther
42421c4f7e
client: Allow receiving jumbo frames on the client as well
...
Check the caplen and see if it is bigger than our assumed
maximum. Make sure we have enough space for data+hdr+hdr.
2015-12-03 20:28:04 +01:00
Holger Hans Peter Freyther
ff1a5dc751
server: Deal with jumbo frames on the wire
...
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-12-03 19:53:24 +01:00
Holger Hans Peter Freyther
26327bd0ce
server: Fix the language and refer to the received data length
2015-12-03 19:29:38 +01:00
Holger Hans Peter Freyther
a316c9394a
debian: Make a new release of the code
2015-11-19 10:16:00 +00:00
Holger Hans Peter Freyther
74f89c6119
gprs: Do not collect BVC FLOW CONTROL / ACK messages
...
These generate a high amount of traffic. They are good to debug
ip.access nanoBTS GPRS crashes/service outage but in general cause
too much traffic.
2015-11-19 10:14:56 +00:00
Holger Hans Peter Freyther
f42bbbc278
debian: Prepare a new release
2015-09-10 17:11:40 +02:00
Holger Hans Peter Freyther
ae5ec91a40
gprs: Remove left over for counting llc frames
...
These variables were used to verify how many LLC frames were
seen.
2015-09-10 17:02:18 +02:00
Holger Hans Peter Freyther
b7a834b4cb
gprs: Add a custom GPRS filter
...
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
2015-09-10 16:55:33 +02:00
Sylvain Munaut
07d96eb654
build: Replace deprecated INCLUDES with AM_CPPFLAGS
...
Thanks to mnhauke
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-12-22 22:33:31 +01:00
Holger Hans Peter Freyther
4edd6e6f1e
debian: Add a osmo-pcap-client init script
...
* Ask start-stop-daemon to fork and create a PID file for us
* Kill based on the PID file and not the name
2013-04-10 18:38:12 +02:00
Holger Hans Peter Freyther
b08783de7b
debian: Add changelog entry for 0.0.4
2012-11-07 10:53:27 +01:00
Holger Hans Peter Freyther
b7568c6897
contrib: Really add the config files, move them to contrib
2012-11-06 23:45:07 +01:00
Holger Hans Peter Freyther
d7999f0557
debian: Update the package building
2012-11-06 23:42:04 +01:00
Holger Hans Peter Freyther
6d06bb1500
build: Allow to set the PCAP_CFLAGS and PCAP_LIBS externally
...
pcap-config might not be available, e.g. on Debian6.0 and CentOS5.x. Allow
the code to be built anyway.
2012-11-06 23:38:57 +01:00
Holger Hans Peter Freyther
fc3a427fb1
build: Properly link and package the example configurations
2012-11-06 09:06:44 +01:00
Holger Hans Peter Freyther
557215fd56
misc: Fix the version determination of git-version-gen
2012-11-06 08:48:33 +01:00
Holger Hans Peter Freyther
e8b9177706
dist: Attempt to fix the make distcheck
2012-01-06 00:46:38 +01:00
Holger Hans Peter Freyther
56d12cb505
dist: Attempt to fix the make distcheck
2012-01-06 00:45:14 +01:00
Daniel Willmann
f8e6e1888a
contrib: Use explicit globs and regexps
2011-12-26 23:59:09 +01:00
Holger Hans Peter Freyther
0741879e11
cron: Deal with '-' in the name of a client.
...
Do not stop when seeing the first '-'. E.g. if you have names like
tpe-system1, tpe-system2 they were treated as tpe and it was possible
that a currently opened file was deleted.
2011-09-24 16:51:32 +02:00
Daniel Willmann
53e1f38514
Clean by age as well as by amount of files in osmo_pcap_clean_old
...
The behaviour can be controlled by setting METHOD to "AGE" or "FILES".
2011-08-18 14:10:59 +02:00
Daniel Willmann
0e94548484
Fix bug where the cleanup script kept the oldest files
...
Fixes OW #21 .
2011-07-26 12:36:00 +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
5d62ed0904
contrib: Add a script to clean up in regular intervals
...
This script should be run from cron. It compresses and deletes older
files.
2011-07-19 17:56:13 +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
de6262a97e
TODO: Add a todo list... with bite size chunks
2011-06-03 20:25:56 +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
821f4fad68
debian: Start packaging things
2011-06-01 15:00:55 +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