47icmp_input(
struct pbuf *p,
struct netif *inp)
82 iecho->type = ICMP6_ER;
84 if (iecho->chksum >=
htons(0xffff - (ICMP6_ECHO << 8))) {
85 iecho->chksum +=
htons(ICMP6_ECHO << 8) + 1;
87 iecho->chksum +=
htons(ICMP6_ECHO << 8);
110 struct icmp_dur_hdr *idur;
120 LWIP_ASSERT(
"check that first pbuf can hold icmp message",
126 idur->type = (
u8_t)ICMP6_DUR;
127 idur->icode = (
u8_t)t;
146 struct icmp_te_hdr *tehdr;
158 LWIP_ASSERT(
"check that first pbuf can hold icmp message",
164 tehdr->type = (
u8_t)ICMP6_TE;
165 tehdr->icode = (
u8_t)t;
#define LWIP_DEBUGF(debug, message)
#define LWIP_ASSERT(message, assertion)
u16_t inet_chksum_pseudo(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest, u8_t proto, u16_t proto_len)
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)
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 ip_addr_set(dest, src)
#define SMEMCPY(dst, src, len)
struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
u8_t pbuf_free(struct pbuf *p)
#define ICMP_STATS_INC(x)