aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2015-07-01 16:45:29 +0200
committerLuca <deri@ntop.org>2015-07-01 16:45:29 +0200
commit07ebed7faea31dd5c52e1c0f912dbfaa23a23698 (patch)
tree3e36b1e056a0c429f13d8ba2e5ee8fac76dcdef2 /src/lib/ndpi_main.c
parent857020c475947c0aed94e8156be1ba809fa8fe30 (diff)
Removed commented code
Renamed ndpi_int_add_connection() with ndpi_set_detected_protocol()
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index bec62c6e7..d088b5aa7 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -4881,14 +4881,14 @@ u_int8_t ndpi_detection_get_l4(const u_int8_t * l3, u_int16_t l3_len, const u_in
return ndpi_detection_get_l4_internal(NULL, l3, l3_len, l4_return, l4_len_return, l4_protocol_return, flags);
}
-void ndpi_int_add_connection(struct ndpi_detection_module_struct *ndpi_struct,
+void ndpi_set_detected_protocol(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow,
u_int16_t detected_protocol/* , ndpi_protocol_type_t protocol_type */)
{
struct ndpi_id_struct *src = flow->src;
struct ndpi_id_struct *dst = flow->dst;
- ndpi_int_change_protocol(ndpi_struct, flow, detected_protocol/* , protocol_type */);
+ ndpi_int_change_protocol(ndpi_struct, flow, detected_protocol);
if(src != NULL) {
NDPI_ADD_PROTOCOL_TO_BITMASK(src->detected_protocol_bitmask, detected_protocol);
@@ -5208,7 +5208,7 @@ u_int8_t ndpi_detection_flow_protocol_history_contains_protocol(struct ndpi_dete
* 1.call ndpi_int_change_protocol
* 2.set protocol in detected bitmask for src and dst
*/
-void ndpi_int_add_connection(struct ndpi_detection_module_struct *ndpi_struct,
+void ndpi_set_detected_protocol(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow,
u_int16_t detected_protocol/* , ndpi_protocol_type_t protocol_type */);
@@ -5241,8 +5241,8 @@ void ndpi_int_change_protocol(struct ndpi_detection_module_struct *ndpi_struct,
u_int16_t detected_protocol/* , */
/* ndpi_protocol_type_t protocol_type */)
{
- ndpi_int_change_flow_protocol(ndpi_struct, flow, detected_protocol/* , protocol_type */);
- ndpi_int_change_packet_protocol(ndpi_struct, flow, detected_protocol/* , protocol_type */);
+ ndpi_int_change_flow_protocol(ndpi_struct, flow, detected_protocol);
+ ndpi_int_change_packet_protocol(ndpi_struct, flow, detected_protocol);
}