Commit Graph

835 Commits

Author SHA1 Message Date
Kaian
d014bc0c8c doc: added changelog entry for 1.4.4 2017-09-17 10:54:14 +02:00
Federico Santulli
e3ab7d7268 Fixed Window Resize in Call List and Call Flow 2017-09-17 10:43:08 +02:00
Kaian
a3b24b6e19 capture: fix crash while saving offline capture 2017-09-17 10:40:33 +02:00
Kaian
5a06bb581b capture: fix compilation support for CentOS 5.x 2017-09-11 12:26:28 +02:00
Kaian
1b5149c6f8 capture: allow reading data from standard input #198 2017-08-21 11:43:09 +02:00
Kaian
3c19342f25 offline: wait all threads are completed in no-interface mode #199
During offline file parsing in No interface mode, instead of checking if any
capture handler was still open, it was checking if any capture mode was online.
When only files were supplied, the capture instantly ended, closing the just
started offline capture threads.
2017-08-17 17:50:56 +02:00
Kaian
03c69a6311 eep: capture mode now displays running eep modes #194
Improved Capture Mode call list text to indicate
eep current running mode.

EEP listen mode is considered an Online mode and
will be displayed as [L:port].

EEP send mode is not considered an input but it
will also still printed as [H:port] in Capture
mode label.
2017-06-20 16:41:56 +02:00
Kaian
3e3c276dd4 doc: update README.md broken links 2017-06-20 16:19:53 +02:00
Kaian
ca6bd26fff autotools: fix ncurses wchar detection
Author: Adam Duskett <aduskett@codeblue.com>

Ncurses detection is currently broken in buildroot.

This patch does the following:
 - Add SNGREP_CHECK_SCRIPT to configure.ac which checks for a
   libname, a function in that library, sets a define if found, and
   if not found, moves on to the next part. This is taken from the
   htop configure.ac.

 - Adds SNGREP_CHECK_LIB to configure.ac which checks for a
   library, a function within that library, sets a define if that function
   is found, and if not found, moves on to the next part.
   This is taken from the htop configure.ac

 - Modifies scrollbar.h and ui_panel.h to include <wctypes.h> instead of
   <ncursesw/ncurses.h> if unicode is supported.
2017-06-20 16:12:36 +02:00
Nikolay Shopik
436252820a send EEP packets to localhost by default 2017-06-20 11:50:58 +02:00
Kaian
446054da34 eep: remove default send/receive password value #193 2017-06-19 20:15:18 +02:00
Kaian
9a6550055f autotools: fix ncurses wchar detection 2017-05-30 11:15:49 +02:00
Kaian
e50176a534 capture: add support for VLAN 802.1Q header in Linux cooked packets #189 2017-05-24 15:28:29 +02:00
Romain Naour
22b8206357 use libgcrypt-config to link with gpg-error
gcrypt is linked with libgpg-error, use libgcrypt-config to find
this dependency. (libgcrypt doesn't provide a .pc file)

libgcrypt-config --libs
[...] -lgcrypt -lgpg-error

Signed-off-by: Romain Naour <romain.naour@gmail.com>
2017-05-22 13:13:53 +02:00
Romain Naour
9f65c34633 configure.ac: switch to pkg-config to find gnutls.
Like for openssl in patch [1] and for the same reason,
use pkg-config to find gnutls.

gnutls can be linked with :
    -lintl -lgmp -lunistring -lhogweed -lnettle -ltasn1 -lz

Fixes:
http://autobuild.buildroot.net/results/f7f/f7fb42d3742f6f01000a0d181e0c785640284405

[1] 2563b016ae

Signed-off-by: Romain Naour <romain.naour@gmail.com>
2017-05-22 13:13:53 +02:00
Kaian
35eca717b8 tcp: don't store negative length payloads for assembly #187 2017-05-15 18:05:16 +02:00
Kaian
60d98b3316 tcp: avoid crash with multi-message TCP packets #187 2017-05-15 17:28:55 +02:00
Kaian
c2e03f89eb rtp: avoid parsing SRTCP packet payload #186
Check the RTCP reported header length is not greater than the actual available
RTPC packet size.
2017-05-12 16:21:15 +02:00
Kaian
5f21dbe847 Release files for version bump to 1.4.3 2017-05-10 16:46:07 +02:00
Kaian
f9ec50ec56 group: fix only SDP arrows mode in call flow 2017-05-08 13:09:00 +02:00
Sergej
302429fee1 - eep: Support for EEP traffic with UUID chunks (Asterisk) 2017-05-05 11:15:45 +02:00
Kaian
982d6e5658 sip: update SIP From/To regexp to handle URIs without user #183
When no user is present in this headers 'SIP From/To User' will now be empty
instead of showing the ip/domain of the header URI.
2017-04-26 19:30:20 +02:00
Kaian
c39e33c0c6 doc: Fix readme distribution links for install instructions 2017-04-21 15:15:14 +02:00
Kaian
8e52f70ed0 Merge branch 'multi_device' 2017-04-18 10:58:31 +02:00
Kaian
e3a1323e01 todo: improve captures during long executions #179 2017-04-04 12:35:20 +02:00
Kaian
e4f361382c doc: Improve man documentation for some command line options #179 2017-04-04 11:51:26 +02:00
Kaian
cb46ff5091 cli: fix segfault when --limit option is used without arguments #179 2017-04-04 11:51:17 +02:00
Kaian
25ce3f65e6 capture: Use default device if no device or input file has been specified 2017-04-04 11:14:26 +02:00
Kaian
be708634c1 capture: Add support for capturing from multiples devices #93
Like the -I command line argument supports multiples files, this commit implements
the logics for supporting multiple -d command line arguments.

We have also changed the way status (online, offline) is calculated, based on the
loaded sources.

The IP and TCP reassembly vectors have been now moved into each capture source
structure to avoid locking the general canpture config struct (where those vector
used to live until now).
2017-04-03 12:58:26 +02:00
Kaian
6aca10b350 configure: use PKG_CHECK_MODULES only when availbale #178 #176
PKG_CHECK_MODULES macro is installed in pkg-config package which is not present
in all installations. While it has its advantes, we must check if it's available
to support legacy configurations.
2017-04-03 11:51:07 +02:00
Kaian
3c9aa4ee51 sip: Allow spaces before CRLF in SIP headers parsing regexp 2017-04-03 11:11:23 +02:00
Kaian
9b9340c3b2 group: fix call message ordering by timestamp
The group struct allows managin multiple calls at the same time
and should provide a way to get the next and prev messages of the
group easily. The sorting logic should be done here, instead of
ordering arrows or other things.
2017-03-10 13:10:04 +01:00
Kaian
ce033e897b pkg: Add debian build dependency on pkg-config 2017-03-06 12:45:34 +01:00
Thomas Petazzoni
2563b016ae configure.ac: switch to pkg-config to find openssl
Using AC_CHECK_LIB() doesn't work properly for static linking, because
it doesn't return information on transitive dependencies of
libraries. For example, if library A internally uses library B, then
with dynamic linking, doing -lA is sufficient. However, with static
linking, one must do -lA -lB, and AC_CHECK_LIB() will only give the -lA
information. This for example causes a build failure when building
sngrep statically with openssl enabled:

checking for SSL_new in -lssl... no
configure: error:  You need to have libssl installed to compile sngrep

due to undefined symbols in the OpenSSL library.

The proper solution for this is to discover the library using
pkg-config, because pkg-config properly returns the list of necessary
libraries, as it understands the concept of "list of libraries needed
when dynamic linking" and "list of libraries needed for static linking".

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-03-05 11:59:57 +01:00
Thomas Petazzoni
a2bfe0e1cc src/Makefile.am: don't use VPATH
VPATH is a mechanism used to allow out-of-tree build, not to use source
code from a different directory. For this purpose, one should simply use
the "subdir-objects" AUTOMAKE_OPTIONS, and reference the source code of
the sub-directory in the <prog>_SOURCES variable.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-03-05 11:59:57 +01:00
Kaian
5c9845112e tcp: improve tcp reassembly with multimessage packets #174
For TCP it was supported than a packet may content only a part of
the SIP message, that continued in other packets.

In this case, the given pcap contains packets with multiples SIP
messages each.

This patch is far from perfect. For each of this packets, we
only handle the first message, and keep the rest in the reassembly
queue for later process. This means than, if the last packet of
the stream contains more than one SIP message, the last message
will not be handled never...
2017-02-28 16:10:48 +01:00
Daniel-Constantin Mierla
9ce3fb3ab8 set no_argument for -F option 2017-02-17 12:05:55 +01:00
Daniel-Constantin Mierla
d27777f9e1 added -F option to skip loading default config file
- long option: --no-config
2017-02-17 10:44:39 +01:00
Lonnie Abelbeck
e8ce622b5d Add parentheses around assignments in conditionals to silence 'clang' warnings 2017-02-06 11:14:45 +01:00
Lonnie Abelbeck
04fa090b91 Use sng_malloc() for rcfile string buffers instead of fixed stack based buffers 2017-02-06 11:14:45 +01:00
Lonnie Abelbeck
08cb4dc7ca help screen, label F8/o to 'Show Settings' 2017-02-01 15:27:39 +01:00
Lonnie Abelbeck
3d582f932f Add 'SNGREPRC' environment variable support to optionally specify the user configuration file 2017-02-01 12:33:50 +01:00
Kaian
494f96e1cd cf: add support for deselecting arrows
Use the same keybinding ACTION_CLEAR that is used in call list
to deselect rows (default Cltr+W).
2017-01-26 13:38:38 +01:00
Kaian
9a08a8a46e sip: SIP 600 responses will set call state to BUSY. #165 2017-01-05 12:55:35 +01:00
Kaian
159cc432f0 capture: fix ip assembly with more than two fragments. #164 2017-01-04 12:09:04 +01:00
Kaian
298e16071d pkg: fix rpm version to 1.4.2 in spec file 2016-12-28 11:59:42 +01:00
Kaian
fbc5c7c17d pkg: Fix debian changelog format 2016-12-28 11:43:54 +01:00
Kaian
da791185ca pcap: Add compatibility with latest libcap versions in OpenBSD #163 2016-12-20 18:45:50 +01:00
Kaian
8d5e638f58 doc: Version bump to 1.4.2 2016-12-19 15:05:50 +01:00
Kaian
4aacd31211 cf: Add a keybinding to only display active RTP streams
We consider an active RTP stream those that have received a RTP packet
in the last STREAM_INACTIVE_SECS seconds (which defaults to 3). This is
a bit adhoc display that requires testing.
2016-12-19 13:43:55 +01:00