Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #15

Merged
merged 6 commits into from
May 31, 2015
Merged

Dev #15

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,3 @@ The entire procedure of adding new protocols in detail:
If you want to distribute a source tar file of nDPI do:

- make dist

--------------------------
April 2015 - ntop
20 changes: 20 additions & 0 deletions README.nDPI
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
rerequisites for Compilation
-----------------------------

Prerequisites
- GNU autotools/libtool
- libpcap or PF_RING (optional but recommended)

On Ubuntu/Debian
- apt-get install build-essential
- apt-get install git autoconf automake autogen libpcap-dev libtool

On Fedora/CentOS
- yum groupinstall "Development tools"
- yum install git autoconf automake autogen libpcap-devel libtool

On MacOSX (using http://brew.sh)
brew install autoconf automake libtool git

On FreeBSD
- pkg install autoconf automake libtool gmake git
8 changes: 6 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([libndpi], [1.5.2])
AC_INIT([libndpi], [1.6.0])

AC_CONFIG_MACRO_DIR([m4])

Expand All @@ -12,7 +12,11 @@ AX_PTHREAD
if test -d ".git"; then :
GIT_TAG=`git log -1 --format=%h`
GIT_DATE=`git log -1 --format=%cd`
GIT_NUM=`git rev-list HEAD --count`
#
# On CentOS 6 `git rev-list HEAD --count` does not work
#
#
GIT_NUM=`git log --pretty=oneline | wc -l`
GIT_BRANCH=`git rev-parse --abbrev-ref HEAD`
GIT_RELEASE="${PACKAGE_VERSION}-${GIT_BRANCH}-${GIT_NUM}-${GIT_TAG}"
else
Expand Down
2 changes: 2 additions & 0 deletions src/lib/ndpi_content_match.c.inc
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,13 @@ static ndpi_network host_protocol_list[] = {
Skype (Microsoft CDN)
157.56.0.0/14, 157.60.0.0/16, 157.54.0.0/15
111.221.64.0 - 111.221.127.255
91.190.216.0/21 (AS198015 Skype Communications Sarl)
*/
{ 0x9D380000 /* 157.56.0.0 */, 14, NDPI_PROTOCOL_SKYPE },
{ 0x9D3C0000 /* 157.60.0.0 */, 16, NDPI_PROTOCOL_SKYPE },
{ 0x9D360000 /* 157.54.0.0 */, 15, NDPI_PROTOCOL_SKYPE },
{ 0x6FDD4000 /* 111.221.64.0 */, 18, NDPI_PROTOCOL_SKYPE },
{ 0x5BBED800 /* 91.190.216.0 */, 21, NDPI_PROTOCOL_SKYPE },

/*
Google
Expand Down
Binary file added tests/pcap/whatsapp_login_call.pcap
Binary file not shown.
Binary file added tests/pcap/whatsapp_login_chat.pcap
Binary file not shown.
13 changes: 13 additions & 0 deletions tests/result/whatsapp_login_call.pcap.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
HTTP 11 726 3
MDNS 8 952 4
DHCP 10 3420 1
STUN 689 85660 4
ICMP 10 700 1
SSL 8 589 2
DropBox 4 2176 1
Apple 127 28102 20
WhatsApp 182 25154 2
AppleiTunes 85 28087 2
Spotify 3 258 1
H323 70 9464 14
RTCP 44 7818 2
6 changes: 6 additions & 0 deletions tests/result/whatsapp_login_chat.pcap.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
MDNS 2 202 2
DHCP 6 2052 1
DropBox 2 1088 1
Apple 50 23466 2
WhatsApp 32 3243 2
Spotify 1 86 1