Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
47
Issues
47
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
f68c1ad4
Commit
f68c1ad4
authored
Jan 13, 2016
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrpc: new socket allocation used
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
b20f86cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
wrpc-socket.c
time-wrpc/wrpc-socket.c
+4
-1
No files found.
time-wrpc/wrpc-socket.c
View file @
f68c1ad4
...
...
@@ -13,6 +13,8 @@
/* This function should init the minic and get the mac address */
static
int
wrpc_open_ch
(
struct
pp_instance
*
ppi
)
{
/* we know we create one socket only in wrpc */
static
struct
wrpc_socket
__static_ptp_socket
;
struct
wrpc_socket
*
sock
;
mac_addr_t
mac
;
struct
wr_sockaddr
addr
;
...
...
@@ -20,7 +22,8 @@ static int wrpc_open_ch(struct pp_instance *ppi)
addr
.
ethertype
=
ETH_P_1588
;
memcpy
(
addr
.
mac
,
PP_MCAST_MACADDRESS
,
sizeof
(
mac_addr_t
));
sock
=
ptpd_netif_create_socket
(
PTPD_SOCK_RAW_ETHERNET
,
0
,
&
addr
);
sock
=
ptpd_netif_create_socket
(
&
__static_ptp_socket
,
PTPD_SOCK_RAW_ETHERNET
,
0
,
&
addr
);
if
(
!
sock
)
return
-
1
;
...
...
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