Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
mock-turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
hdl-core-lib
mock-turtle
Commits
9872a30f
Commit
9872a30f
authored
Aug 08, 2018
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hdl: fix rx endpoint dst_ip filter to always accept broadcast
parent
1c362003
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mt_rmq_endpoint_rx.vhd
hdl/rtl/endpoint/mt_rmq_endpoint_rx.vhd
+3
-1
No files found.
hdl/rtl/endpoint/mt_rmq_endpoint_rx.vhd
View file @
9872a30f
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment