diff options
author | Thomas Winter <Thomas.Winter@alliedtelesis.co.nz> | 2023-08-21 11:04:20 +1200 |
---|---|---|
committer | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-09-12 13:12:14 +0200 |
commit | 7263562514ac8c98ca923b98cc89d4c10bbdb30f (patch) | |
tree | 582e4f17c1ee52b4ea81321c7119cc18662053f1 /src | |
parent | 1e9517ab74678e06d3ca607dd30d4ccaf8835864 (diff) |
tftp: check for Option Acknowledgements
TFTP Option Acknowledgement packets were being excluded.
When a read/write request contains options, an Option Acknowledgement
is returned that contains the option strings that the transaction
will use.
The options sent in the request are not compared with what was
acknowledged.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/tftp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/protocols/tftp.c b/src/lib/protocols/tftp.c index 135d1bea2..4b505c8fd 100644 --- a/src/lib/protocols/tftp.c +++ b/src/lib/protocols/tftp.c @@ -165,6 +165,11 @@ static void ndpi_search_tftp(struct ndpi_detection_module_struct *ndpi_struct, } break; + case 0x06: + /* Option Acknowledgment (OACK) */ + /* No fixed lengths as it can include the options from the request. */ + break; + default: NDPI_EXCLUDE_PROTO(ndpi_struct, flow); return; |