Skip to content

Commit

Permalink
Remove check for protocol length in ARP header
Browse files Browse the repository at this point in the history
  • Loading branch information
masonticehurst committed Feb 14, 2024
1 parent 9bd8c5c commit 5c863c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eRINA_STM32F7/src/net/net-protos-arp.adb
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,13 @@ package body Net.Protos.Arp is
is
Req : constant Net.Headers.Arp_Packet_Access := Packet.Arp;
begin
-- Check for valid hardware length, protocol length, hardware type and protocol type.
-- Check for valid hardware length, hardware type and protocol type.
if Req.Arp.Ea_Hdr.Ar_Hln /= Ifnet.Mac'Length or
Req.Arp.Ea_Hdr.Ar_Pln /= Ifnet.Ip'Length or
Req.Arp.Ea_Hdr.Ar_Hdr /= Net.Headers.To_Network (ARPOP_REQUEST) or
Req.Arp.Ea_Hdr.Ar_Pro /=
Net.Headers.To_Network (ETHERTYPE_RINA) -- (ETHERTYPE_IP)
then
-- Ignore any future processing of this ARP message if it's not RINA-related
Ifnet.Rx_Stats.Ignored := Ifnet.Rx_Stats.Ignored + 1;
return;
end if;
Expand Down

0 comments on commit 5c863c6

Please sign in to comment.