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.
This commit is contained in:
Thomas Winter
2023-09-12 13:12:14 +02:00
committed by Ivan Nardi
parent 1e9517ab74
commit 7263562514
+5
View File
@@ -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;