Commit 4c33f90b authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: net: move socket stucture to header

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 7b82e986
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment