tcpip_net_protocol Struct Reference

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

#include <tcpip.h>


Data Fields

const char * name
 Protocol name.
sa_family_t sa_family
 Network address family.
int(* tx )(struct io_buffer *iobuf, struct tcpip_protocol *tcpip_protocol, struct sockaddr_tcpip *st_src, struct sockaddr_tcpip *st_dest, struct net_device *netdev, uint16_t *trans_csum)
 Transmit packet.


Detailed Description

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

IPV4, IPv6, etc)

Definition at line 77 of file tcpip.h.


Field Documentation

Protocol name.

Definition at line 79 of file tcpip.h.

Referenced by tcpip_tx().

Network address family.

Definition at line 81 of file tcpip.h.

Referenced by tcpip_tx().

int( * tcpip_net_protocol::tx)(struct io_buffer *iobuf, struct tcpip_protocol *tcpip_protocol, struct sockaddr_tcpip *st_src, struct sockaddr_tcpip *st_dest, struct net_device *netdev, uint16_t *trans_csum)

Transmit packet.

Parameters:
iobuf I/O buffer
tcpip_protocol Transport-layer protocol
st_src Source address, or NULL to use default
st_dest Destination address
netdev Network device (or NULL to route automatically)
trans_csum Transport-layer checksum to complete, or NULL
Return values:
rc Return status code
This function takes ownership of the I/O buffer.

Referenced by tcpip_tx().


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