Holger Hans Peter Freyther
6e938eda1c
stats: Initialize the stats(d) backend in the client/server
...
Initialize the stats backend allowing key performance indicators
to be pushed out of the system.
Change-Id: Id652b60d230f705b927e49d81cd3731432156c7e
2016-08-13 10:36:58 +02:00
Holger Hans Peter Freyther
f8ff41e0f9
misc: Address compiler warning about deprecated header
...
In file included from osmo_client_main.c:27:0:
/home/ich/install/openbsc/include/osmocom/core/process.h:1:2: warning: #warning "Update from osmocom/core/process.h to osmocom/core/application.h" [-Wcpp]
#warning "Update from osmocom/core/process.h to osmocom/core/application.h"
Change-Id: Id60cf90ebb7255d79f8e3bdb81f099f1362d538b
2016-08-13 10:31:02 +02:00
Holger Hans Peter Freyther
df92652c95
vty: Fix compiler warning about type changes
...
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-13 10:29:46 +02:00
Holger Hans Peter Freyther
bdcbe0a679
misc: Update the todo with an obvious thing to do
...
Change-Id: I002e72776c6916ee331b4387b6d645d0c48c388c
2016-08-12 11:01:59 +02:00
Holger Hans Peter Freyther
2c503dd852
todo: With zeromq we can stream the data anywhere we want
...
Change-Id: I97c23cbf2d5f42b12e2fc8426633401c4edc1a62
2016-08-06 12:26:15 +02:00
Holger Hans Peter Freyther
e024869a72
server: Add zmq based event and data interface to the server
...
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-05 16:10:05 +02:00
Holger Hans Peter Freyther
ad29ce6f06
server: Add zmq interface for publishing events
...
Change-Id: I383558bb9aad3cb149f35e13910a1d6aa79afc84
2016-08-04 18:02:57 +02:00
Holger Hans Peter Freyther
2899428be2
server: Add a config knob to not store the pcap stream
...
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
2016-08-04 16:14:38 +02:00
Holger Hans Peter Freyther
9646754e1f
ci: Add travis.yml for the github account
...
Change-Id: I26de644a9cf4c6d6fb366c8a8fd701570005b9a8
2016-08-03 22:00:58 +02:00
Holger Hans Peter Freyther
26ba7b247e
todo: Add another of my wishlist items
...
Change-Id: I5a6c473a97d04aecae8101a024edb734bbe24401
Reviewed-on: https://gerrit.osmocom.org/27
Tested-by: Jenkins Builder
Reviewed-by: Harald Welte <laforge@gnumonks.org>
2016-05-12 11:22:39 +00:00
Holger Hans Peter Freyther
c2715e917f
todo: Update with my long term goal to have TLS support
...
Change-Id: I566d48fe9831f384b93c3fad72a7dae9dd61b2d2
2016-05-08 11:24:04 +02:00
Holger Hans Peter Freyther
ea4ad4680a
jenkins: Attempt to fix FreeBSD distcheck
...
Change-Id: I758a5590f3d964039363852f07f0967170fd9a28
2016-05-03 14:37:34 +02:00
Holger Hans Peter Freyther
ddc698fa92
freebsd: Another fix for the next file
...
Change-Id: I509e44c48d7983b305bc5fbcd9360ead74ef8d68
2016-05-03 14:37:31 +02:00
Holger Hans Peter Freyther
072b183cd8
freebsd: Include netinet/in.h and hopefully fix the build
...
Fixes:
/usr/include/netinet/ip.h:69:17: error: field has incomplete type 'struct in_addr'
struct in_addr ip_src,ip_dst; /* source and dest address */
Change-Id: I446f67b85122363de66c86ddb25c8392ffa61a4f
2016-05-03 14:37:28 +02:00
Holger Hans Peter Freyther
7ab0c0b86c
jenkins: Attempt to fix build on FreeBSD and not break Linux
...
pcap-config is not present as libpcap is part of the base system.
Use it as /bin/true and inject -lpcap as PCAP_LIBS.
Change-Id: I0c2b5222da0ee037d3a3156ac1fef89dfd849cad
2016-05-03 14:37:26 +02:00
Holger Hans Peter Freyther
157797317d
distcheck: Need to package .version on Ubuntu as well
...
echo 0.0.6.14-5dff > ../../.version-t && mv ../../.version-t ../../.version
/bin/bash: ../../.version-t: Permission denied
Makefile:786: recipe for target '../../.version' failed
make[1]: *** [../../.version] Error 1
Change-Id: I726181f7af3e7582398738e0746982a5ea31d7e9
2016-05-03 14:37:22 +02:00
Holger Hans Peter Freyther
5dff9f9ef5
jenkins: Add the build script from jenkins here
...
This can be used to replicate a build issue more easily.
2016-04-13 19:04:44 -04:00
Holger Hans Peter Freyther
3fedbf8361
Mention the packages available
2016-01-18 14:25:19 +01:00
Holger Hans Peter Freyther
e6bad63dc6
Point to a stand-a-lone repository with many many packages
2016-01-18 12:32:42 +01:00
Holger Hans Peter Freyther
fd15a866db
misc: Update the readme
2016-01-05 15:09:27 +01:00
Holger Hans Peter Freyther
d2650854b6
misc: Add a readme to describe the project purpose a bit
2016-01-05 12:50:46 +01:00
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