ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/slirp/ip_icmp.h
(Generate patch)

Comparing BasiliskII/src/slirp/ip_icmp.h (file contents):
Revision 1.2 by gbeauche, 2005-05-13T14:02:37Z vs.
Revision 1.3 by gbeauche, 2006-01-17T21:19:12Z

# Line 47 | Line 47 | typedef u_int32_t n_time;
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 */
# Line 92 | Line 96 | struct icmp {
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.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines