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
50
Issues
50
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
6ea49b8e
Commit
6ea49b8e
authored
May 31, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrpc-socket.c: adjust (for support for multiple nic)
parent
e55bc442
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
wrpc-socket.c
time-wrpc/wrpc-socket.c
+3
-1
No files found.
time-wrpc/wrpc-socket.c
View file @
6ea49b8e
...
...
@@ -10,6 +10,7 @@
#include "../arch-wrpc/wrpc.h"
#include "dev/syscon.h"
/* wrpc-sw */
#include "dev/endpoint.h"
/* wrpc-sw */
#include "dev/netif.h"
#include "net.h"
#include "board.h"
...
...
@@ -32,6 +33,7 @@ static int wrpc_open_ch(struct pp_instance *ppi)
const
unsigned
char
*
mac
;
struct
wr_sockaddr
addr
;
char
*
macaddr
=
PP_MCAST_MACADDRESS
;
struct
wrc_netif_device
*
nif
=
netif_get_device
(
0
);
if
(
is_delayMechanismP2P
(
ppi
)
)
macaddr
=
PP_PDELAY_MACADDRESS
;
...
...
@@ -39,7 +41,7 @@ static int wrpc_open_ch(struct pp_instance *ppi)
memcpy
(
addr
.
mac
,
macaddr
,
sizeof
(
mac_addr_t
));
sock
=
ptpd_netif_create_socket
(
GET_WRPC_SOCKET
(
ptp_socket
),
LEN_WRPC_SOCKET
(
ptp_socket
),
&
addr
,
PTPD_SOCK_RAW_ETHERNET
,
0
);
&
addr
,
PTPD_SOCK_RAW_ETHERNET
,
0
,
nif
);
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