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
32
Issues
32
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
c090d975
Commit
c090d975
authored
Feb 19, 2016
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pfilter: vlan: replicate the novlan rules for PTP over UDP
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
b995f24b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
pfilter-builder.c
tools/pfilter-builder.c
+10
-0
No files found.
tools/pfilter-builder.c
View file @
c090d975
...
...
@@ -464,6 +464,16 @@ void pfilter_init_vlan(char *fname)
pfilter_cmp
(
1
,
0xffff
,
0xffff
,
AND
,
FRAME_BROADCAST
);
pfilter_cmp
(
2
,
0xffff
,
0xffff
,
AND
,
FRAME_BROADCAST
);
/* PTP UDP (end to end: 01:00:5e:00:01:81 224.0.1.129) */
pfilter_cmp
(
0
,
0x0100
,
0xffff
,
MOV
,
FRAME_MAC_PTP
);
pfilter_cmp
(
1
,
0x5e00
,
0xffff
,
AND
,
FRAME_MAC_PTP
);
pfilter_cmp
(
2
,
0x0181
,
0xffff
,
MOV
,
R_TMP
);
/* PTP UDP (peer-to-p: 01:00:5e:00:00:6b 224.0.0.197) */
pfilter_cmp
(
2
,
0x006b
,
0xffff
,
OR
,
R_TMP
);
pfilter_logic3
(
FRAME_MAC_OK
,
FRAME_MAC_PTP
,
AND
,
R_TMP
,
OR
,
FRAME_MAC_OK
);
/* Untagged is dropped. */
pfilter_cmp
(
6
,
0x8100
,
0xffff
,
MOV
,
R_TMP
);
pfilter_logic2
(
R_DROP
,
R_TMP
,
NOT
,
R_ZERO
);
...
...
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