diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2025-06-03 10:22:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-03 10:22:15 +0200 |
commit | ed210577101af311e70d6ddcde1b0282a76f6031 (patch) | |
tree | 2be00d2596b052ede26a9849a7c75c1828ca089c /src/lib/protocols/http.c | |
parent | 70a72f163800dd37dca1ec586ae0a58a6cef8206 (diff) |
First step into a dynamic number of protocols (#2857)
We want to get rid of the defines `NDPI_MAX_SUPPORTED_PROTOCOLS` and
`NDPI_MAX_NUM_CUSTOM_PROTOCOLS`.
You can use:
```
ndpi_get_num_protocols()
```
See #2136
Removed some unused functions from public API
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r-- | src/lib/protocols/http.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index d5a254f56..25d3208d9 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -1794,34 +1794,6 @@ static void ndpi_search_http_tcp(struct ndpi_detection_module_struct *ndpi_struc } } -/* ********************************* */ - -ndpi_http_method ndpi_get_http_method(struct ndpi_flow_struct *flow) { - if(!flow) { - return(NDPI_HTTP_METHOD_UNKNOWN); - } else - return(flow->http.method); -} - -/* ********************************* */ - -char* ndpi_get_http_url(struct ndpi_flow_struct *flow) { - if((!flow) || (!flow->http.url)) - return(""); - else - return(flow->http.url); -} - -/* ********************************* */ - -char* ndpi_get_http_content_type(struct ndpi_flow_struct *flow) { - if((!flow) || (!flow->http.content_type)) - return(""); - else - return(flow->http.content_type); -} - - void init_http_dissector(struct ndpi_detection_module_struct *ndpi_struct) { register_dissector("HTTP", ndpi_struct, ndpi_search_http_tcp, |