40 #include "lwip/icmp.h"
41 #include "lwip/inet.h"
47 icmp_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;