From 1df5b453cb20afa6fac0a3af4a59c03a71de5563 Mon Sep 17 00:00:00 2001 From: chiehminw Date: Tue, 26 Mar 2019 11:46:57 +0800 Subject: Parse HTTP PATCH method HTTP PATCH is introduced in RFC 5789 (https://tools.ietf.org/html/rfc5789) Signed-off-by: chiehminw --- src/include/ndpi_typedefs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 92c011b3d..068b62e59 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -360,6 +360,7 @@ typedef enum { NDPI_HTTP_METHOD_OPTIONS, NDPI_HTTP_METHOD_GET, NDPI_HTTP_METHOD_HEAD, + NDPI_HTTP_METHOD_PATCH, NDPI_HTTP_METHOD_POST, NDPI_HTTP_METHOD_PUT, NDPI_HTTP_METHOD_DELETE, -- cgit v1.2.3 From bb2f35fe79d38f920fa95590e89cbac974e6cc4d Mon Sep 17 00:00:00 2001 From: Derrick Lyndon Pallas Date: Fri, 5 Apr 2019 18:48:42 +0000 Subject: Make path const in ndpi_load_protocols_file --- src/include/ndpi_api.h | 2 +- src/lib/ndpi_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index 84633c3ae..6e0e4787b 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -612,7 +612,7 @@ extern "C" { * */ int ndpi_load_protocols_file(struct ndpi_detection_module_struct *ndpi_mod, - char* path); + const char* path); /** * Get the total number of the supported protocols diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index bdd28f666..fb764c730 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2900,7 +2900,7 @@ int ndpi_handle_rule(struct ndpi_detection_module_struct *ndpi_mod, udp:139@NETBIOS */ -int ndpi_load_protocols_file(struct ndpi_detection_module_struct *ndpi_mod, char* path) { +int ndpi_load_protocols_file(struct ndpi_detection_module_struct *ndpi_mod, const char* path) { FILE *fd; char *buffer, *old_buffer; int chunk_len = 512, buffer_len = chunk_len, old_buffer_len; -- cgit v1.2.3