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
86
Issues
86
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
99a9d619
Commit
99a9d619
authored
Jan 12, 2015
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/ptpd_netif: remove another redundant define
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
d4c19556
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
ptpd_netif.h
userspace/libwr/include/libwr/ptpd_netif.h
+1
-3
wr_phytool.c
userspace/tools/wr_phytool.c
+2
-2
No files found.
userspace/libwr/include/libwr/ptpd_netif.h
View file @
99a9d619
...
...
@@ -12,8 +12,6 @@
// GCC-specific
#define PACKED __attribute__((packed))
#define IFACE_NAME_LEN 16
// Some system-independent definitions
typedef
uint8_t
mac_addr_t
[
6
];
typedef
uint32_t
ipv4_addr_t
;
...
...
@@ -24,7 +22,7 @@ typedef void *wr_socket_t;
// Socket address for ptp_netif_ functions
typedef
struct
{
// Network interface name (eth0, ...)
char
if_name
[
IFACE_NAME_LEN
];
char
if_name
[
16
];
// Socket family (RAW ethernet/UDP)
int
family
;
// MAC address
...
...
userspace/tools/wr_phytool.c
View file @
99a9d619
...
...
@@ -259,7 +259,7 @@ void calc_trans(int ep, int argc, char *argv[])
if
(
argc
>=
3
)
f_log
=
fopen
(
argv
[
3
],
"wb"
);
s
printf
(
sock_addr
.
if_name
,
"wr%d"
,
ep
);
s
nprintf
(
sock_addr
.
if_name
,
sizeof
(
sock_addr
.
if_name
)
,
"wr%d"
,
ep
);
sock_addr
.
family
=
PTPD_SOCK_RAW_ETHERNET
;
// socket type
sock_addr
.
ethertype
=
12345
;
memset
(
sock_addr
.
mac
,
0xff
,
6
);
...
...
@@ -381,7 +381,7 @@ void pps_adjustment_test(int ep, int argc, char *argv[])
signal
(
SIGINT
,
sighandler
);
s
printf
(
sock_addr
.
if_name
,
"wr%d"
,
ep
);
s
nprintf
(
sock_addr
.
if_name
,
sizeof
(
sock_addr
.
if_name
)
,
"wr%d"
,
ep
);
sock_addr
.
family
=
PTPD_SOCK_RAW_ETHERNET
;
// socket type
sock_addr
.
ethertype
=
12345
;
memset
(
sock_addr
.
mac
,
0xff
,
6
);
...
...
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