iPXE
Data Fields
tcpip_protocol Struct Reference

A transport-layer protocol of the TCP/IP stack (eg. More...

#include <tcpip.h>

Data Fields

const char * name
 Protocol name. More...
 
int(* rx )(struct io_buffer *iobuf, struct net_device *netdev, struct sockaddr_tcpip *st_src, struct sockaddr_tcpip *st_dest, uint16_t pshdr_csum)
 Process received packet. More...
 
uint16_t zero_csum
 Preferred zero checksum value. More...
 
uint8_t tcpip_proto
 Transport-layer protocol number. More...
 

Detailed Description

A transport-layer protocol of the TCP/IP stack (eg.

UDP, TCP, etc)

Definition at line 104 of file tcpip.h.

Field Documentation

◆ name

const char* tcpip_protocol::name

Protocol name.

Definition at line 106 of file tcpip.h.

Referenced by tcpip_rx().

◆ rx

int( * tcpip_protocol::rx) (struct io_buffer *iobuf, struct net_device *netdev, struct sockaddr_tcpip *st_src, struct sockaddr_tcpip *st_dest, uint16_t pshdr_csum)

Process received packet.

Parameters
iobufI/O buffer
netdevNetwork device
st_srcPartially-filled source address
st_destPartially-filled destination address
pshdr_csumPseudo-header checksum
Return values
rcReturn status code

This method takes ownership of the I/O buffer.

Definition at line 119 of file tcpip.h.

Referenced by tcpip_rx().

◆ zero_csum

uint16_t tcpip_protocol::zero_csum

Preferred zero checksum value.

The checksum is a one's complement value: zero may be represented by either positive zero (0x0000) or negative zero (0xffff).

Definition at line 128 of file tcpip.h.

Referenced by ipv4_tx(), and ipv6_tx().

◆ tcpip_proto

uint8_t tcpip_protocol::tcpip_proto

Transport-layer protocol number.

This is a constant of the type IP_XXX

Definition at line 134 of file tcpip.h.

Referenced by ipv4_tx(), ipv6_tx(), and tcpip_rx().


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