Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
87
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
d7282740
Commit
d7282740
authored
10 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
userspace/ptpd_netif: remove unused fields from wr_sockaddr
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
99a9d619
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
userspace/libwr/include/libwr/ptpd_netif.h
+0
-4
0 additions, 4 deletions
userspace/libwr/include/libwr/ptpd_netif.h
userspace/libwr/ptpd_netif.c
+0
-1
0 additions, 1 deletion
userspace/libwr/ptpd_netif.c
with
0 additions
and
5 deletions
userspace/libwr/include/libwr/ptpd_netif.h
+
0
−
4
View file @
d7282740
...
...
@@ -27,10 +27,6 @@ typedef struct {
int
family
;
// MAC address
mac_addr_t
mac
;
// Destination MASC address, filled by recvfrom() function on interfaces bound to multiple addresses
mac_addr_t
mac_dest
;
// IP address
ipv4_addr_t
ip
;
// UDP port
uint16_t
port
;
// RAW ethertype
...
...
This diff is collapsed.
Click to expand it.
userspace/libwr/ptpd_netif.c
+
0
−
1
View file @
d7282740
...
...
@@ -470,7 +470,6 @@ int ptpd_netif_recvfrom(wr_socket_t * sock, wr_sockaddr_t * from, void *data,
from
->
ethertype
=
ntohs
(
pkt
.
ether
.
h_proto
);
memcpy
(
from
->
mac
,
pkt
.
ether
.
h_source
,
6
);
memcpy
(
from
->
mac_dest
,
pkt
.
ether
.
h_dest
,
6
);
if
(
rx_timestamp
)
rx_timestamp
->
correct
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment