47 |
|
/* |
48 |
|
* Structure of an icmp header. |
49 |
|
*/ |
50 |
+ |
#ifdef PRAGMA_PACK_SUPPORTED |
51 |
+ |
#pragma pack(1) |
52 |
+ |
#endif |
53 |
+ |
|
54 |
|
struct icmp { |
55 |
|
u_char icmp_type; /* type of message, see below */ |
56 |
|
u_char icmp_code; /* type sub code */ |
96 |
|
#define icmp_ip icmp_dun.id_ip.idi_ip |
97 |
|
#define icmp_mask icmp_dun.id_mask |
98 |
|
#define icmp_data icmp_dun.id_data |
99 |
< |
}; |
99 |
> |
} PACKED__; |
100 |
> |
|
101 |
> |
#ifdef PRAGMA_PACK_SUPPORTED |
102 |
> |
#pragma pack(0) |
103 |
> |
#endif |
104 |
|
|
105 |
|
/* |
106 |
|
* Lower bounds on packet lengths for various types. |