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.
int(* rx )(struct io_buffer *iobuf, struct sockaddr_tcpip *st_src, struct sockaddr_tcpip *st_dest, uint16_t pshdr_csum)
 Process received packet.
uint8_t tcpip_proto
 Transport-layer protocol number.


Detailed Description

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

UDP, TCP, etc)

Definition at line 50 of file tcpip.h.


Field Documentation

const char* tcpip_protocol::name

Protocol name.

Definition at line 52 of file tcpip.h.

Referenced by tcpip_rx().

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

Process received packet.

Parameters:
iobuf I/O buffer
st_src Partially-filled source address
st_dest Partially-filled destination address
pshdr_csum Pseudo-header checksum
Return values:
rc Return status code
This method takes ownership of the I/O buffer.

Referenced by tcpip_rx().

Transport-layer protocol number.

This is a constant of the type IP_XXX

Definition at line 71 of file tcpip.h.

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


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

Generated on Tue Apr 6 20:02:09 2010 for gPXE by  doxygen 1.5.7.1