iPXE
|
ICMPv4 protocol. More...
#include <string.h>
#include <errno.h>
#include <ipxe/iobuf.h>
#include <ipxe/in.h>
#include <ipxe/tcpip.h>
#include <ipxe/icmp.h>
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static int | icmpv4_rx (struct io_buffer *iobuf, struct net_device *netdev __unused, struct sockaddr_tcpip *st_src, struct sockaddr_tcpip *st_dest __unused, uint16_t pshdr_csum __unused) |
Process a received packet. More... | |
Variables | |
struct icmp_echo_protocol icmpv4_echo_protocol | __icmp_echo_protocol |
ICMPv4 echo protocol. More... | |
struct tcpip_protocol icmpv4_protocol | __tcpip_protocol |
ICMPv4 TCP/IP protocol. More... | |
ICMPv4 protocol.
Definition in file icmpv4.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Process a received packet.
iobuf | I/O buffer |
netdev | Network device |
st_src | Partially-filled source address |
st_dest | Partially-filled destination address |
pshdr_csum | Pseudo-header checksum |
rc | Return status code |
Definition at line 51 of file icmpv4.c.
References io_buffer::data, DBG, DBG_HD, EINVAL, free_iob(), ICMP_ECHO_REPLY, ICMP_ECHO_REQUEST, icmp_rx_echo_reply(), icmp_rx_echo_request(), iob_len(), len, rc, tcpip_chksum(), type, and icmp_header::type.
struct icmp_echo_protocol icmpv4_echo_protocol __icmp_echo_protocol |
ICMPv4 echo protocol.
struct tcpip_protocol icmpv4_protocol __tcpip_protocol |
ICMPv4 TCP/IP protocol.