Skip to content
Snippets Groups Projects
Commit 867d6ae2 authored by Stefan Brüns's avatar Stefan Brüns Committed by Joe Hershberger
Browse files

net: reject Bootp/DHCP packets with bad OP value


Rename check_packet to check_reply_packet to make its function more
obvious.
The check for DHCP_* values is completely off, as it should
compare against DHCP option 53 (Message Type). Only valid value for
any Bootp/DHCP reply is BOOTREPLY.

Signed-off-by: default avatarStefan Brüns <stefan.bruens@rwth-aachen.de>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 82953328
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment