iPXE
|
A network-layer protocol of the TCP/IP stack (eg. More...
#include <tcpip.h>
Data Fields | |
const char * | name |
Protocol name. More... | |
sa_family_t | sa_family |
Network address family. More... | |
size_t | header_len |
Fixed header length. More... | |
struct net_protocol * | net_protocol |
Network-layer protocol. More... | |
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. More... | |
struct net_device *(* | netdev )(struct sockaddr_tcpip *dest) |
Determine transmitting network device. More... | |
A network-layer protocol of the TCP/IP stack (eg.
IPV4, IPv6, etc)
const char* tcpip_net_protocol::name |
sa_family_t tcpip_net_protocol::sa_family |
Network address family.
Definition at line 144 of file tcpip.h.
Referenced by efi_pxe_ip_sockaddr(), and tcpip_net_protocol().
size_t tcpip_net_protocol::header_len |
struct net_protocol* tcpip_net_protocol::net_protocol |
Network-layer protocol.
Definition at line 148 of file tcpip.h.
Referenced by efi_pxe_start(), and efi_pxe_udp_deliver().
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.
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 |
rc | Return status code |
This function takes ownership of the I/O buffer.
Definition at line 162 of file tcpip.h.
Referenced by tcpip_tx().
struct net_device*( * tcpip_net_protocol::netdev) (struct sockaddr_tcpip *dest) |
Determine transmitting network device.
st_dest | Destination address |
netdev | Network device, or NULL |
Definition at line 174 of file tcpip.h.
Referenced by tcpip_mtu(), and tcpip_netdev().