70 |
void icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t); |
void icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t); |
71 |
void icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t); |
void icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t); |
72 |
|
|
73 |
#include "arch/bpstruct.h" |
#ifdef PACK_STRUCT_USE_INCLUDES |
74 |
|
# include "arch/bpstruct.h" |
75 |
|
#endif |
76 |
PACK_STRUCT_BEGIN |
PACK_STRUCT_BEGIN |
77 |
struct icmp_echo_hdr { |
struct icmp_echo_hdr { |
78 |
PACK_STRUCT_FIELD(u16_t _type_code); |
PACK_STRUCT_FIELD(u16_t _type_code); |
81 |
PACK_STRUCT_FIELD(u16_t seqno); |
PACK_STRUCT_FIELD(u16_t seqno); |
82 |
} PACK_STRUCT_STRUCT; |
} PACK_STRUCT_STRUCT; |
83 |
PACK_STRUCT_END |
PACK_STRUCT_END |
84 |
#include "arch/epstruct.h" |
#ifdef PACK_STRUCT_USE_INCLUDES |
85 |
|
# include "arch/epstruct.h" |
86 |
|
#endif |
87 |
|
|
88 |
#include "arch/bpstruct.h" |
#ifdef PACK_STRUCT_USE_INCLUDES |
89 |
|
# include "arch/bpstruct.h" |
90 |
|
#endif |
91 |
PACK_STRUCT_BEGIN |
PACK_STRUCT_BEGIN |
92 |
struct icmp_dur_hdr { |
struct icmp_dur_hdr { |
93 |
PACK_STRUCT_FIELD(u16_t _type_code); |
PACK_STRUCT_FIELD(u16_t _type_code); |
95 |
PACK_STRUCT_FIELD(u32_t unused); |
PACK_STRUCT_FIELD(u32_t unused); |
96 |
} PACK_STRUCT_STRUCT; |
} PACK_STRUCT_STRUCT; |
97 |
PACK_STRUCT_END |
PACK_STRUCT_END |
98 |
#include "arch/epstruct.h" |
#ifdef PACK_STRUCT_USE_INCLUDES |
99 |
|
# include "arch/epstruct.h" |
100 |
|
#endif |
101 |
|
|
102 |
#include "arch/bpstruct.h" |
#ifdef PACK_STRUCT_USE_INCLUDES |
103 |
|
# include "arch/bpstruct.h" |
104 |
|
#endif |
105 |
PACK_STRUCT_BEGIN |
PACK_STRUCT_BEGIN |
106 |
struct icmp_te_hdr { |
struct icmp_te_hdr { |
107 |
PACK_STRUCT_FIELD(u16_t _type_code); |
PACK_STRUCT_FIELD(u16_t _type_code); |
109 |
PACK_STRUCT_FIELD(u32_t unused); |
PACK_STRUCT_FIELD(u32_t unused); |
110 |
} PACK_STRUCT_STRUCT; |
} PACK_STRUCT_STRUCT; |
111 |
PACK_STRUCT_END |
PACK_STRUCT_END |
112 |
#include "arch/epstruct.h" |
#ifdef PACK_STRUCT_USE_INCLUDES |
113 |
|
# include "arch/epstruct.h" |
114 |
|
#endif |
115 |
|
|
116 |
#define ICMPH_TYPE(hdr) (NTOHS((hdr)->_type_code) >> 8) |
#define ICMPH_TYPE(hdr) (NTOHS((hdr)->_type_code) >> 8) |
117 |
#define ICMPH_CODE(hdr) (NTOHS((hdr)->_type_code) & 0xff) |
#define ICMPH_CODE(hdr) (NTOHS((hdr)->_type_code) & 0xff) |