Partial fix for #410: added case insensitive HTTP header checks.

If the user will provide a pcap for reproducing further potential issues reported we will consider them
This commit is contained in:
Luca
2017-08-29 21:32:52 +02:00
parent 22beb7714d
commit b2bc6039da
2 changed files with 68 additions and 31 deletions
+12
View File
@@ -98,6 +98,18 @@ extern "C" {
*/
char* ndpi_strnstr(const char *s, const char *find, size_t slen);
/**
* Same as ndpi_strnstr but case insensitive
*
* @par s = string to parse
* @par find = string to match with -s-
* @par slen = max length to match between -s- and -find-
* @return a pointer to the beginning of the located substring;
* NULL if the substring is not found
*
*/
char* ndpi_strncasestr(const char *s, const char *find, size_t slen);
/**
* Returns the nDPI protocol id for IP-based protocol detection