Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
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
Software for White Rabbit PTP Core
Commits
d3b0dd6d
Commit
d3b0dd6d
authored
Oct 09, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/net: print correct ethertype for udp packets
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
1d84cc25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
net.c
lib/net.c
+4
-3
No files found.
lib/net.c
View file @
d3b0dd6d
...
...
@@ -61,9 +61,6 @@ struct wrpc_socket *ptpd_netif_create_socket(struct wrpc_socket *sock,
pp_printf
(
"%s: no socket slots left
\n
"
,
__func__
);
return
NULL
;
}
net_verbose
(
"%s: socket %p for %04x:%04x, slot %i
\n
"
,
__func__
,
sock
,
ntohs
(
bind_addr
->
ethertype
),
udpport
,
i
);
if
(
wrpc_get_port_state
(
&
pstate
,
"wr0"
/* unused */
)
<
0
)
return
NULL
;
...
...
@@ -78,6 +75,10 @@ struct wrpc_socket *ptpd_netif_create_socket(struct wrpc_socket *sock,
sock
->
bind_addr
.
udpport
=
udpport
;
}
net_verbose
(
"%s: socket %p for %04x:%04x, slot %i
\n
"
,
__func__
,
sock
,
ntohs
(
sock
->
bind_addr
.
ethertype
),
udpport
,
i
);
/*get mac from endpoint */
ep_get_mac_addr
(
&
wrc_endpoint_dev
,
sock
->
local_mac
);
...
...
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