|
miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
|
One slot in the socket rx ring. More...
#include <net_socket.h>
Public Attributes | |
| uint8_t | buf [NET_SOCK_RX_BUF_SIZE] |
| size_t | len |
| uint32_t | addr_be |
| uint16_t | port_be |
| uint16_t | _pad |
One slot in the socket rx ring.
Used for RAW sockets (2 slots) and by UDP/TCP (single-slot at index 0).
| uint16_t net_sock_rx_entry::_pad |
Alignment
| uint32_t net_sock_rx_entry::addr_be |
Peer IPv4 in network byte order
| uint8_t net_sock_rx_entry::buf[NET_SOCK_RX_BUF_SIZE] |
Received frame payload (IP+ICMP for RAW, UDP payload for UDP, TCP bytes for TCP)
| size_t net_sock_rx_entry::len |
Bytes in buf; 0 = slot empty
| uint16_t net_sock_rx_entry::port_be |
Peer port in network byte order (0 for RAW)