#include "lwip/opt.h"
#include "lwip/icmp.h"
#include "lwip/inet.h"
#include "lwip/inet_chksum.h"
#include "lwip/ip.h"
#include "lwip/def.h"
#include "lwip/stats.h"
#include "lwip/snmp.h"
#include <string.h>
Go to the source code of this file.
Defines | |
#define | ICMP_DEST_UNREACH_DATASIZE 8 |
Functions | |
void | icmp_input (struct pbuf *p, struct netif *inp) |
void | icmp_dest_unreach (struct pbuf *p, enum icmp_dur_type t) |
void | icmp_time_exceeded (struct pbuf *p, enum icmp_te_type t) |
ICMP - Internet Control Message Protocol
Definition in file icmp.c.
#define ICMP_DEST_UNREACH_DATASIZE 8 |
void icmp_dest_unreach | ( | struct pbuf * | p, | |
enum icmp_dur_type | t | |||
) |
Send an icmp 'destination unreachable' packet, called from ip_input() if the transport layer protocol is unknown and from udp_input() if the local port is not bound.
p | the input packet for which the 'unreachable' should be sent, p->payload pointing to the IP header | |
t | type of the 'unreachable' packet |
Processes ICMP input packets, called from ip_input().
Currently only processes icmp echo requests and sends out the echo response.
p | the icmp echo request packet, p->payload pointing to the ip header | |
inp | the netif on which this packet was received |
Definition at line 78 of file icmp.c.
void icmp_time_exceeded | ( | struct pbuf * | p, | |
enum icmp_te_type | t | |||
) |