Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
83
Issues
83
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
f18bb5f7
Commit
f18bb5f7
authored
Mar 19, 2012
by
Tomasz Wlostowski
Committed by
Alessandro Rubini
Mar 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrsw_rtud: added PTP multicast MAC to default static FDB entries
parent
5c092eee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
rtud.c
userspace/wrsw_rtud/rtud.c
+2
-0
No files found.
userspace/wrsw_rtud/rtud.c
View file @
f18bb5f7
...
...
@@ -57,6 +57,7 @@ static int rtu_create_static_entries()
{
uint8_t
bcast_mac
[]
=
{
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
};
uint8_t
slow_proto_mac
[]
=
{
0x01
,
0x80
,
0xc2
,
0x00
,
0x00
,
0x01
};
uint8_t
ptp_mcast_mac
[]
=
{
0x01
,
0x1b
,
0x19
,
0x00
,
0x00
,
0x00
};
hexp_port_list_t
plist
;
hexp_port_state_t
pstate
;
int
i
,
err
;
...
...
@@ -92,6 +93,7 @@ static int rtu_create_static_entries()
// Broadcast MAC
TRACE
(
TRACE_INFO
,
"adding static route for broadcast MAC..."
);
err
=
rtu_fd_create_entry
(
bcast_mac
,
0
,
enabled_port_mask
|
(
1
<<
NIC_PORT
),
STATIC
);
err
=
rtu_fd_create_entry
(
ptp_mcast_mac
,
0
,
(
1
<<
NIC_PORT
),
STATIC
);
if
(
err
)
return
err
;
...
...
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