Hank Leininger
a1f6cbb6c9
Symlink the shared library to pwd.
...
DESTDIR is used, for instance, by distros to facilitate installing
to a temp path for testing / package-building.
In general nDPI supports DESTDIR (yay!), but using an absolute path
for the target of the library link has two problems:
1) If DESTDIR is set to /some/tmp/path, we end up with a link that
points to /some/tmp/path/usr/lib/libndpi-x.y.z, which is definitely
not what is intended - once the package is installed, the link is
broken.
2) Absolute links are problematic for distributions; pointing to
/usr/lib/libndpi-x.y.z during package build-and-test would point to
either a nonexistent file, or an old and possibly wrong one.
Both of these are avoided if we just link to the target with no path
at all.
2018-10-08 18:17:30 -06:00
lucaderi
6dcf1f3fba
Backported ndpi_protocol2id
2018-10-04 21:36:46 +02:00
Luca Deri
ba72865f23
Added missing ndpi_protocol2id() prototype
...
Fixed error when crearing symlink in Makefile
2018-09-19 11:11:15 +02:00
Иван Спиненко
efd8348c3a
Fixed duplicate protocol name. #607
2018-09-13 18:30:44 +05:00
Luca
6be5188ff9
Fixes #600
...
Backport of recent fixes (e.g. #601 )
2018-09-11 10:02:34 +03:00
Guido Falsi
91ac4e4bee
Move the configure include file inclusion and code depending on it in code protected by the NDPI_LIB_COMPILATION define, this should avoid it polluting the environment when including this file from ntopng, version against stable branch.
2018-08-27 17:52:56 +02:00
Luca Deri
1a6a9593fb
Changed type to ease compilation accross platforms
2018-08-20 14:49:59 +02:00
Luca Deri
6cb40ac75e
Compilation fix
2018-08-20 12:39:55 +02:00
Luca Deri
50591238e5
Merge pull request #586 from eglooca/pr-sys-types-include-for-actypes-h
...
Include <sys/types.h> for u_int16_t.
2018-08-17 14:18:27 +02:00
Simone Mainardi
291acb9459
Hyperscan regex for domains such as .com.cn or .co.uk
2018-08-17 13:13:26 +02:00
Simone Mainardi
47c2ad1b5f
Webex category fix
2018-08-17 12:59:19 +02:00
Simone Mainardi
6491568e15
Fixes hyperscan WeChat detection
2018-08-17 12:48:53 +02:00
Simone Mainardi
28ac30d827
Fixes hyperscan skype detection
2018-08-17 12:41:35 +02:00
Simone Mainardi
db74459ca2
Fixes weibo detection
2018-08-17 12:29:08 +02:00
Simone Mainardi
d2bc3ea209
Initial hyperscan support for all protocols
2018-08-17 12:00:28 +02:00
Darryl Sokoloski
cd9d456994
Include sys/types.h for u_int16_t.
...
On various embedded environments (OpenWrt, EdgeOS), <sys/types.h> must be included for u_intX_t types. The Hyperscan changes made recently introducted a u_int16_t member in actypes.h which is undeclared in certainly environments without this include.
Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca >
2018-08-16 22:31:23 -04:00
Simone Mainardi
579f1b05db
Adds hyperscan support for Apple and Dropbox
2018-08-16 19:42:04 +02:00
Simone Mainardi
7e41309fa9
Hyperscan compilation fix
2018-08-16 15:43:35 +02:00
Luca Deri
3091dc3c48
Fix for #400
2018-08-16 15:23:30 +02:00
Luca Deri
01bf295a19
Completed custom category implementation
2018-08-16 14:57:44 +02:00
Luca Deri
18b9589e50
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
2018-08-16 12:03:23 +02:00
Luca Deri
9847c2ccbb
Generic protocol cleanup (work in progress)
2018-08-16 12:03:09 +02:00
Simone Mainardi
335b336968
Hyperscan compilation fixes
2018-08-16 11:47:10 +02:00
Darryl Sokoloski
b3b8feabf1
Added new dissector for Memcached.
...
Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca >
2018-08-15 16:47:21 -04:00
Luca Deri
d9cf798753
Updated YouTube support
2018-08-06 10:34:45 +02:00
Luca Deri
cbb2eb8c8f
Merge pull request #576 from eglooca/pr-ssdp-min-length
...
Adjust the SSDP dissector's minimum packet length
2018-07-25 08:18:17 +02:00
Luca Deri
6474125c93
Merge pull request #577 from eglooca/pr-parse-packet-line-info-length
...
Fix end-of-line bounds handling.
2018-07-25 08:17:32 +02:00
Luca Deri
5100cc0eae
Added checks for missing protocol initialization
...
Fixed missing LOG_ERR initialization
Fixed logging warnings
2018-07-23 14:58:16 +02:00
Luca Deri
49ed41142c
Fixed SEGV with undepcified protos
2018-07-22 21:06:10 +02:00
Luca Deri
659649d2e9
Fixed warning
2018-07-21 18:23:48 +02:00
Luca
f828dfc202
Added comment about typedefs
2018-07-21 16:17:12 +02:00
Luca
591158bb92
Defined type ndpi_protocol_id_t for protocol identifiers
2018-07-21 16:09:32 +02:00
Luca
667e77c609
Major code cleanup
...
Converted some not popular protocols to NDPI_PROTOCOL_GENERIC with category detection
2018-07-21 16:02:54 +02:00
Darryl Sokoloski
fbf6bd2be8
Fix end-of-line bounds handling.
...
The existing implementation misses ending lines and as a result, fails
to match certain protocols (SMTP for example, which needs to see at
least 3 commain/response matches). It appears from the commit history
that an attempt was made (end-1) to prevent reads past payload length.
This can be ensured by simply not reading any payload that is < 3 bytes.
The updated logic for this loop is:
- Payload length is >= 3 bytes, or return.
- Loop over payload, compare for EOL (CR + NL) sequence.
- If found, process string.
- If index 'a' plus two is less than payload length, increment 'a' by
one and continue.
- Loop return always increments index 'a' by one.
2018-07-20 13:51:17 -04:00
Darryl Sokoloski
8b0e735f67
Decreased minimum packet payload length down to 19 from 100 for SSDP.
...
The minimum packet payload length is: "NOTIFY * HTTP/1.1" + 0x0d + 0x0a (19 bytes).
2018-07-20 13:26:44 -04:00
Simone Mainardi
d9c963061b
Fixes invalid NDPI_MAX_SUPPORTED_PROTOCOLS
2018-07-20 18:52:00 +02:00
Luca Deri
30b72eae64
Changed RTP from VoIP to Media category
2018-07-18 21:29:26 +02:00
Luca Deri
475f54e9d1
Fixed name clash
2018-07-18 17:33:28 +02:00
Luca Deri
34dfe7d375
Improved tor detection to limit false positives
2018-07-17 18:21:06 +02:00
Luca Deri
06789406ad
Pattern match improvements
2018-07-17 17:49:59 +02:00
Luca Deri
1ebc510bcb
Fied substring matching
2018-07-17 15:48:24 +02:00
Luca Deri
90ffa1fc2c
Updated twitter invalid address range
...
Using content substring match in category search
2018-07-16 09:21:34 +02:00
Marcus Hufvudsson
7fce8f02d2
Added showmax.com detection
2018-07-02 19:54:37 +02:00
Luca
3986a951d8
Suppressed invalid messages with -q
...
-j now accepts - as stdout
2018-06-21 16:13:18 +02:00
Luca Deri
22356fa69b
Added site unavailable category
2018-06-11 17:01:20 +02:00
Luca Deri
e00b06926e
Fix for handling IP address based custom categories
2018-06-11 16:22:02 +02:00
Luca Deri
dc9409ae12
Added missing include
2018-06-05 23:02:24 +02:00
Simone Mainardi
2b4321b5c3
Fixes invalid NDPI_MAX_SUPPORTED_PROTOCOLS
...
Fixes https://github.com/ntop/nDPI/commit/c77ec63e
2018-05-31 16:19:48 +02:00
Luca Deri
6b16ad709e
Fix for #560
2018-05-29 22:50:18 +02:00
Luca Deri
326a2fb7ed
Fix for https://github.com/ntop/nDPI/issues/572
2018-05-28 18:18:19 +02:00