udp: Fix length field
Had forgotten to subtract the header size for RX.
This commit is contained in:
parent
3e1a53abaf
commit
e7db2df389
@ -92,7 +92,7 @@ begin
|
|||||||
|
|
||||||
udp_out.rx_header.source_port <= unsigned(std_logic_vector'(sr_source_port(0) & sr_source_port(1)));
|
udp_out.rx_header.source_port <= unsigned(std_logic_vector'(sr_source_port(0) & sr_source_port(1)));
|
||||||
udp_out.rx_header.destination_port <= unsigned(std_logic_vector'(sr_destination_port(2) & sr_destination_port(3)));
|
udp_out.rx_header.destination_port <= unsigned(std_logic_vector'(sr_destination_port(2) & sr_destination_port(3)));
|
||||||
udp_out.rx_header.length <= unsigned(std_logic_vector'(sr_length(4) & sr_length(5)));
|
udp_out.rx_header.length <= unsigned(std_logic_vector'(sr_length(4) & sr_length(5))) - BYTECOUNT_HEADER;
|
||||||
udp_out.rx_header.ipv4_header <= ipv4_protocol_out.rx_header;
|
udp_out.rx_header.ipv4_header <= ipv4_protocol_out.rx_header;
|
||||||
end block receiver;
|
end block receiver;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user