diff options
author | Luca Deri <deri@ntop.org> | 2022-02-08 18:04:57 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2022-02-08 18:04:57 +0100 |
commit | be5a29ba9d4da849992b7a4b42047e591bde20aa (patch) | |
tree | ce13f8487087e62a0441e9436a51dc2898c711ab /src/lib/protocols/ayiya.c | |
parent | 922a7be897b1bc444668cd880f3f926beff4bb10 (diff) |
Added HSRP protocol detection
Removed attic directory now obsolete
Diffstat (limited to 'src/lib/protocols/ayiya.c')
-rw-r--r-- | src/lib/protocols/ayiya.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/protocols/ayiya.c b/src/lib/protocols/ayiya.c index 20088d570..abc5f3336 100644 --- a/src/lib/protocols/ayiya.c +++ b/src/lib/protocols/ayiya.c @@ -48,7 +48,9 @@ void ndpi_search_ayiya(struct ndpi_detection_module_struct *ndpi_struct, struct if(packet->udp && (flow->detected_protocol_stack[0] == NDPI_PROTOCOL_UNKNOWN)) { /* Ayiya is udp based, port 5072 */ - if ((packet->udp->source == htons(5072) || packet->udp->dest == htons(5072)) + u_int16_t port_to_match = htons(5072); + + if ((packet->udp->source == port_to_match || packet->udp->dest == port_to_match) /* check for ayiya new packet */ && (packet->payload_packet_len > 44) ) { |