Commit 9872a30f authored by Dimitris Lampridis's avatar Dimitris Lampridis

hdl: fix rx endpoint dst_ip filter to always accept broadcast

parent 1c362003
......@@ -59,6 +59,8 @@ architecture arch of mt_rmq_endpoint_rx is
constant c_addr_dst_ip : integer := 4;
constant c_addr_dst_port : integer := 5;
constant c_BROADCAST_IP : std_logic_vector(31 downto 0) := X"FFFFFFFF";
signal config : t_rmq_ep_rx_config;
signal match_dst_mac, match_dst_ip, match_udp, match_ethertype : std_logic;
......@@ -162,7 +164,7 @@ begin -- arch
end if;
end if;
if (config.filter_dst_ip = '1') then
if config.filter_dst_ip = '1' and header_i.dst_ip /= c_BROADCAST_IP then
if (config.dst_ip /= header_i.dst_ip) then
match_dst_ip <= '0';
end if;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment