Rename NDPI_PROTOCOL_RPC to NDPI_PROTOCOL_MS_RPCH (#2218)
* Rename NDPI_PROTOCOL_RPC to NDPI_PROTOCOL_MS_RPCH * Add protocol description * Improve MS-RPCH detection
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user