58#ifndef LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN
59#define LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN 1
63#define ICMP_DEST_UNREACH_DATASIZE 8
77icmp_input(
struct pbuf *p,
struct netif *inp)
108#if !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING
111#if !LWIP_MULTICAST_PING
117#if !LWIP_BROADCAST_PING
144#if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN
152 LWIP_ASSERT(
"icmp_input: moving p->payload to ip header failed\n", 0);
161 LWIP_ASSERT(
"check that first pbuf can hold struct the ICMP header",
165 LWIP_ASSERT(
"icmp_input: copying to new pbuf failed\n", 0);
171 LWIP_ASSERT(
"icmp_input: restoring original p->payload failed\n", 0);
181 LWIP_ASSERT(
"icmp_input: restoring original p->payload failed\n", 0);
218 LWIP_ASSERT(
"Can't move over header in packet", 0);
242#if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN
266#if IP_FORWARD || IP_REASSEMBLY
277 icmp_send_response(p,
ICMP_TE, t);
306 LWIP_ASSERT(
"check that first pbuf can hold icmp message",
317 icmphdr->type =
type;
318 icmphdr->code =
code;
324 IP_HLEN + ICMP_DEST_UNREACH_DATASIZE);
#define LWIP_DEBUGF(debug, message)
#define LWIP_ASSERT(message, assertion)
u16_t inet_chksum(void *dataptr, u16_t len)
u16_t inet_chksum_pbuf(struct pbuf *p)
err_t ip_output_if(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif)
ip_addr_t current_iphdr_dest
err_t ip_output(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto)
#define ICMPH_TYPE_SET(hdr, t)
#define ip_current_src_addr()
#define ip_current_dest_addr()
#define IPH_TTL_SET(hdr, ttl)
#define IPH_CHKSUM_SET(hdr, chksum)
#define ip_addr_ismulticast(addr1)
#define ip_addr_copy(dest, src)
typedefPACK_STRUCT_END struct ip_addr ip_addr_t
#define ip_addr_isbroadcast(ipaddr, netif)
#define ip_addr_debug_print(debug, ipaddr)
#define SMEMCPY(dst, src, len)
u8_t pbuf_header(struct pbuf *p, s16_t header_size_increment)
struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
u8_t pbuf_free(struct pbuf *p)
err_t pbuf_copy(struct pbuf *p_to, struct pbuf *p_from)
#define snmp_inc_icmpoutechoreps()
#define snmp_inc_icmpinerrors()
#define snmp_inc_icmpinmsgs()
#define snmp_inc_icmpouttimeexcds()
#define snmp_inc_icmpoutmsgs()
#define ICMP_STATS_INC(x)