Commit Graph

908 Commits

Author SHA1 Message Date
Kaian b34f321cd1 ssl: rename compile flag to WITH_SSL 2018-07-29 15:35:18 +02:00
Kaian 998eba8c7c ui: move windows to curses/screen directory 2018-07-29 15:35:18 +02:00
Kaian 64ba55debe replace all memory alloc and free with glib versions 2018-07-29 15:35:18 +02:00
Kaian 82d197f5d6 group: refactor group calls and messages list 2018-07-29 15:35:17 +02:00
Kaian 8aed750591 refactor struct timeval to glib GTimeVal 2018-07-29 15:34:46 +02:00
Kaian 52ff95a8c5 packet: replace all old packet_t structs with new packet ones 2018-07-29 15:34:46 +02:00
Kaian aadd3e4d78 fix multiple conversion errors and remove compilation warnings 2018-07-29 15:34:46 +02:00
Kaian 4a221fc567 group: refactored call group structure and functions 2018-07-29 15:34:46 +02:00
Kaian dadee70289 capture: implement capture output for txt format 2018-07-29 15:34:45 +02:00
Kaian 132edd2a19 pcap: fix memory leaks with not handled packets 2018-07-29 15:34:24 +02:00
Kaian 2c1d643af9 sip: refactor sip_msg and sip_call structures and functions 2018-07-29 15:34:24 +02:00
Kaian 71eec87ac6 stream: old rtp code is now known as stream 2018-07-29 15:34:11 +02:00
Kaian c734e6e407 rtcp: move rtcp related functions to rtcp dissector 2018-07-29 15:34:11 +02:00
Kaian 81fac8f131 rtp: restore RTP streams arrows in call flow 2018-07-29 15:34:11 +02:00
Kaian a2419a5882 packet: refactor function type definitions 2018-07-29 15:34:11 +02:00
Kaian 30bc0952a6 storage: move message related functions to sip_msg 2018-07-29 15:34:11 +02:00
Kaian 6390ec5d57 sdp: properly handle rtcpmux SDP attribute 2018-07-29 15:34:11 +02:00
Kaian 7615869524 storage: refactor storage functions from sip code 2018-07-29 15:34:11 +02:00
Kaian 4d4ff634d0 sdp: move SDP parsing to packet_sdp dissector 2018-07-29 15:34:10 +02:00
Kaian 0db67ad858 ip/tcp: improved IP and TCP reassembly dissectors 2018-07-29 15:33:52 +02:00
Kaian 23dfc47cb0 sip: move parsing logic from sip to dissector 2018-07-29 15:33:51 +02:00
Kaian fc3213e716 packet: refactor packet parser and dissector
From this commit onwards, packet protocols are handled in
dissector files, where each protocol is in charge of parsing
its own data (although they can access any prior protocol data).

This commit moves all Link/IP/TCP/UDP/WS parsing from capture
sources to their respective dissectors.
Capture GNUTLS code has been moved to TLS packet dissector and
OpenSSL capture support has been disabled.

There is still a lot to do before dissectors works as before. All
SIP/SDP/RTP/RTCP parsing is not even started as a lot of code
must be taken from Media/Rtp/Sip files.
2018-07-29 15:32:49 +02:00
Kaian dcccd6ea39 pcap: implement capture pcap output 2018-07-29 15:32:49 +02:00
Kaian 08ffe96425 capture: reimplement capture input/output sources
Implemented generic capture input and output structures to manage
all packet sources and sinks directly from a capture manager.

Currently available capture inputs:
	- PCAP (device)
	- PCAP (file)
	- HEP (server mode)

Currently availabe capture outptus:
	- PCAP (file)
	- HEP (client mode)
2018-07-29 15:32:47 +02:00
Kaian 4887b311d3 include config.h.cmake.in for cmake configurable defines 2018-07-29 15:31:40 +02:00
Kaian 41e81bd86d main: update error reporting to g_printerr 2018-07-29 15:31:40 +02:00
Kaian 74d601fe50 gnutls: improve error handling for tls_check_keyfile 2018-07-29 15:31:40 +02:00
Kaian 3aadd5832b main: code cleanup input files and devices 2018-07-29 15:31:40 +02:00
Kaian d57affc561 storage: move configuration options to structures 2018-07-29 15:31:39 +02:00
Kaian 37bc1fc5ee remove unused functions and variables 2018-07-29 15:31:21 +02:00
Kaian 2b1056f126 core: replace vector_t with GSequence
While not the best structure container, GSequence
has most of the methods that vector used and also allows
replacing vector_iterator_t with GSequenceIter.

From this point we can move to other containers like
GSList, GList or GPtrArray when required.
2018-07-29 15:31:02 +02:00
Kaian 53129dda17 core: replace regex_t and pcre with GRegex 2018-07-29 15:28:59 +02:00
Kaian 6c982a3b30 sip: replace htable with GHashTable functions 2018-07-29 15:27:34 +02:00
Kaian 4ba68565f2 capture: replace pthread threads with GThread and GRecMutex 2018-07-29 15:27:33 +02:00
Kaian 6ae48b85fb main: replace getopt with GOption for command line parsing 2018-07-29 15:26:04 +02:00
Kaian 4dfa0300e5 cmake: include new build-system using cmake 2018-07-29 15:26:04 +02:00
Kaian 4c73bdcde3 autotools: include new dependency on glib2-0 2018-07-29 15:26:04 +02:00
Kaian 064ed5a3b1 capture: wait for pcap threads cancellation before exit #253 2018-07-24 13:38:44 +02:00
Kaian 33cf5b74d5 call_flow: properly limit column addresses length #250 2018-07-18 17:22:37 +02:00
Kaian ea8302facd ui_filter: create checkbox for new filter methods #249 2018-07-18 16:55:32 +02:00
Kaian 4a68744fff capture: cancel pcap capture threads when exiting #251
We must cancel the thread here instead of joining because, according to
pcap_breakloop man page, you can only break pcap_loop from within the same
thread.

https://www.tcpdump.org/manpages/pcap_breakloop.3pcap.html
2018-07-18 16:29:52 +02:00
Kaian ef5883e14b sip: allow INFO, REFER and UPDATE as method for initial requests #249 2018-07-10 17:03:55 +02:00
Kaian aaebd2d801 group: improve flow view performance for one call groups 2018-06-07 20:52:59 +02:00
Kaian d4a41b26fa sip: fixed a crash with malformed status lines 2018-06-07 20:16:19 +02:00
Kaian 45491d39df cf: improve arrow visibility when src/dst column is the same 2018-05-11 12:41:01 +02:00
Victor Seva 8c038c7658 support custom Call-ID correlation header via sip.xcid setting
* default value: 'X-Call-ID|X-CID' as previously

fixes #218
2018-04-11 19:31:19 +02:00
Kaian c5f6b4e31a cf: fix buffer overflow with long response-text #240 2018-04-11 15:32:16 +02:00
Kaian 731b15eb15 cr: replace non-ascii characters with a configurable character #211
Although sngrep has Unicode support for ncurses, the SIP message payload
is printed character by character using mvwaddch

This commit adds a new configurable setting cr.nonascii that defaults to .
to replace not printable characters.
2018-04-05 12:13:43 +02:00
Kaian 61f5dbd421 cl: avoid buffer overflow while triming display filter #225 2018-04-04 21:02:24 +02:00
Kaian f20a90b056 ui: add support for ncurses compiled with opaque structures #239 2018-04-03 20:54:22 +02:00