AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
netbuf Struct Reference

A packet (net/netbuf.c). More...

#include <netbuf.h>

Data Fields

struct netbuf * next
struct netif * netif
uint8_t * data
size_t len
int loopback
uint32_t src_ip
uint16_t src_port
uint32_t seq
int fin
paddr_t page
struct netbuf * free_prev

Detailed Description

A packet (net/netbuf.c).

It is one buffer of NETBUF_SIZE bytes: this header at its start, and the packet a window in the rest (data, len). Going up, each layer takes its header off the front; going down, it puts its header in the room before the data. Nothing is copied.

Definition at line 16 of file netbuf.h.

Field Documentation

◆ data

◆ fin

int netbuf::fin

Definition at line 31 of file netbuf.h.

Referenced by ooo_drain(), ooo_insert(), and segment_input().

◆ free_prev

struct netbuf* netbuf::free_prev

Definition at line 35 of file netbuf.h.

Referenced by free_push(), and free_remove().

◆ len

◆ loopback

int netbuf::loopback

Definition at line 22 of file netbuf.h.

Referenced by net_main(), netif_input(), and netif_loopback().

◆ netif

struct netif* netbuf::netif

Definition at line 18 of file netbuf.h.

Referenced by net_main(), netbuf_alloc(), netif_input(), and netif_loopback().

◆ next

◆ page

paddr_t netbuf::page

Definition at line 34 of file netbuf.h.

Referenced by netbuf_alloc(), and netbuf_free().

◆ seq

uint32_t netbuf::seq

Definition at line 30 of file netbuf.h.

Referenced by ooo_drain(), and ooo_insert().

◆ src_ip

uint32_t netbuf::src_ip

Definition at line 25 of file netbuf.h.

Referenced by icmp_input(), socket_inet_recv(), and udp_input().

◆ src_port

uint16_t netbuf::src_port

Definition at line 26 of file netbuf.h.

Referenced by icmp_input(), socket_inet_recv(), and udp_input().


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