miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
net_sock_rx_entry Struct Reference

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

Detailed Description

One slot in the socket rx ring.

Used for RAW sockets (2 slots) and by UDP/TCP (single-slot at index 0).

Member Data Documentation

◆ _pad

uint16_t net_sock_rx_entry::_pad

Alignment

◆ addr_be

uint32_t net_sock_rx_entry::addr_be

Peer IPv4 in network byte order

◆ buf

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)

◆ len

size_t net_sock_rx_entry::len

Bytes in buf; 0 = slot empty

◆ port_be

uint16_t net_sock_rx_entry::port_be

Peer port in network byte order (0 for RAW)


The documentation for this struct was generated from the following file: