mirror of https://github.com/OISF/suricata
dhcp: distinguish malformed and truncated options
This patch distinguishes malformed DHCP options from truncated ones.
Previously, the malformed_options field was never set and parsing errors in
overloaded file and sname fields were silently discarded.
This caused malformed options to be reported as truncated or not reported at all.
Classify errors in the primary option stream and overloaded fields.
Treat failures within fixed-size overloaded fields as malformed because those
fields are already fully present.
Ticket #8874
(cherry picked from commit e89b7644a8)
pull/16211/head
parent
5b882dd0b3
commit
dad8363d8a
Loading…
Reference in New Issue