aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r--src/lib/ndpi_utils.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c
index ff56bb61d..3c7fb3f25 100644
--- a/src/lib/ndpi_utils.c
+++ b/src/lib/ndpi_utils.c
@@ -2157,6 +2157,7 @@ const char* ndpi_http_method2str(ndpi_http_method m) {
case NDPI_HTTP_METHOD_DELETE: return("DELETE");
case NDPI_HTTP_METHOD_TRACE: return("TRACE");
case NDPI_HTTP_METHOD_CONNECT: return("CONNECT");
+ case NDPI_HTTP_METHOD_RPC_CONNECT: return("RPC_CONNECT");
case NDPI_HTTP_METHOD_RPC_IN_DATA: return("RPC_IN_DATA");
case NDPI_HTTP_METHOD_RPC_OUT_DATA: return("RPC_OUT_DATA");
}
@@ -2188,10 +2189,13 @@ ndpi_http_method ndpi_http_str2method(const char* method, u_int16_t method_len)
case 'C': return(NDPI_HTTP_METHOD_CONNECT);
case 'R':
if(method_len >= 11) {
- if(strncmp(method, "RPC_IN_DATA", 11) == 0)
- return(NDPI_HTTP_METHOD_RPC_IN_DATA);
- else if(strncmp(method, "RPC_OUT_DATA", 11) == 0)
- return(NDPI_HTTP_METHOD_RPC_OUT_DATA);
+ if(strncmp(method, "RPC_CONNECT", 11) == 0) {
+ return(NDPI_HTTP_METHOD_RPC_CONNECT);
+ } else if(strncmp(method, "RPC_IN_DATA", 11) == 0) {
+ return(NDPI_HTTP_METHOD_RPC_IN_DATA);
+ } else if(strncmp(method, "RPC_OUT_DATA", 11) == 0) {
+ return(NDPI_HTTP_METHOD_RPC_OUT_DATA);
+ }
}
break;
}