/[lwip]/lwip/src/include/ipv4/lwip/icmp.h
ViewVC logotype

Diff of /lwip/src/include/ipv4/lwip/icmp.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by proff_fs, Fri Nov 8 12:54:43 2002 UTC revision 1.3 by likewise, Fri Nov 8 22:50:49 2002 UTC
# Line 70  void icmp_input(struct pbuf *p, struct n Line 70  void icmp_input(struct pbuf *p, struct n
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);
# Line 79  struct icmp_echo_hdr { Line 81  struct icmp_echo_hdr {
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);
# Line 89  struct icmp_dur_hdr { Line 95  struct icmp_dur_hdr {
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);
# Line 99  struct icmp_te_hdr { Line 109  struct icmp_te_hdr {
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)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26