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
5
Merge Requests
5
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
4c33f90b
Commit
4c33f90b
authored
Jan 13, 2016
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: net: move socket stucture to header
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
7b82e986
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
ptpd_netif.h
include/ptpd_netif.h
+16
-0
net.c
lib/net.c
+0
-16
No files found.
include/ptpd_netif.h
View file @
4c33f90b
...
...
@@ -40,6 +40,22 @@ struct wr_sockaddr {
uint16_t
ethertype
;
};
struct
sockq
{
uint8_t
buf
[
NET_SKBUF_SIZE
];
uint16_t
head
,
tail
,
avail
;
uint16_t
n
;
};
struct
wrpc_socket
{
int
in_use
;
struct
wr_sockaddr
bind_addr
;
mac_addr_t
local_mac
;
uint32_t
phase_transition
;
uint32_t
dmtd_phase
;
struct
sockq
queue
;
};
PACKED
struct
wr_timestamp
{
// Seconds
...
...
lib/net.c
View file @
4c33f90b
...
...
@@ -31,22 +31,6 @@ struct ethhdr {
uint16_t
ethtype
;
};
struct
sockq
{
uint8_t
buf
[
NET_SKBUF_SIZE
];
uint16_t
head
,
tail
,
avail
;
uint16_t
n
;
};
struct
wrpc_socket
{
int
in_use
;
struct
wr_sockaddr
bind_addr
;
mac_addr_t
local_mac
;
uint32_t
phase_transition
;
uint32_t
dmtd_phase
;
struct
sockq
queue
;
};
static
struct
wrpc_socket
socks
[
NET_MAX_SOCKETS
];
//#define net_verbose pp_printf
...
...
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