Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PPSi
Manage
Activity
Members
Labels
Plan
Issues
55
Issue boards
Milestones
Wiki
Code
Merge requests
1
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
PPSi
Commits
6ea49b8e
Commit
6ea49b8e
authored
1 year ago
by
Tristan Gingold
Browse files
Options
Downloads
Patches
Plain Diff
wrpc-socket.c: adjust (for support for multiple nic)
parent
e55bc442
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
time-wrpc/wrpc-socket.c
+3
-1
3 additions, 1 deletion
time-wrpc/wrpc-socket.c
with
3 additions
and
1 deletion
time-wrpc/wrpc-socket.c
+
3
−
1
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
;
...
...
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