32#ifndef __LWIP_ICMP_H__
33#define __LWIP_ICMP_H__
37#include "lwip/ip_addr.h"
70#ifdef PACK_STRUCT_USE_INCLUDES
87#ifdef PACK_STRUCT_USE_INCLUDES
91#define ICMPH_TYPE(hdr) ((hdr)->type)
92#define ICMPH_CODE(hdr) ((hdr)->code)
95#define ICMPH_TYPE_SET(hdr, t) ((hdr)->type = (t))
96#define ICMPH_CODE_SET(hdr, c) ((hdr)->code = (c))
101void icmp_input(
struct pbuf *
p,
struct netif *inp);
#define PACK_STRUCT_BEGIN
GLuint GLuint GLsizei GLenum type
static u32_t chksum(void *dataptr, u16_t len)
PACK_STRUCT_BEGIN struct icmp_echo_hdr PACK_STRUCT_STRUCT
PACK_STRUCT_FIELD(u8_t code)
PACK_STRUCT_FIELD(u16_t seqno)
PACK_STRUCT_FIELD(u16_t id)
PACK_STRUCT_FIELD(u16_t chksum)
PACK_STRUCT_FIELD(u8_t type)