Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
31
Issues
31
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
Software for White Rabbit PTP Core
Commits
f1a97700
Commit
f1a97700
authored
Mar 08, 2017
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pfilter: restore default MAC in the binary with rules after they are loaded
parent
5cbbec15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
ep_pfilter.c
dev/ep_pfilter.c
+10
-0
No files found.
dev/ep_pfilter.c
View file @
f1a97700
...
@@ -167,5 +167,15 @@ void pfilter_init_default(void)
...
@@ -167,5 +167,15 @@ void pfilter_init_default(void)
*
v_vlan
|=
0x0aaa
<<
13
;
*
v_vlan
|=
0x0aaa
<<
13
;
}
}
/* Restore default MAC, so that the rule-set check doesn't fail on LM32
* restart */
v
=
vini
+
1
;
/* rewind v to the beginning, skipping the first magic number */
v
[
2
]
&=
~
(
0xffff
<<
13
);
v
[
4
]
&=
~
(
0xffff
<<
13
);
v
[
6
]
&=
~
(
0xffff
<<
13
);
v
[
2
]
|=
0x1234
<<
13
;
v
[
4
]
|=
0x5678
<<
13
;
v
[
6
]
|=
0x9abc
<<
13
;
EP
->
PFCR0
=
EP_PFCR0_ENABLE
;
EP
->
PFCR0
=
EP_PFCR0_ENABLE
;
}
}
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