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

Comparing BasiliskII/src/slirp/udp.h (file contents):
Revision 1.1 by gbeauche, 2005-05-13T09:00:59Z vs.
Revision 1.3 by gbeauche, 2006-01-17T21:19:12Z

# Line 46 | Line 46 | extern struct socket *udp_last_so;
46   * Udp protocol header.
47   * Per RFC 768, September, 1981.
48   */
49 + #ifdef PRAGMA_PACK_SUPPORTED
50 + #pragma pack(1)
51 + #endif
52 +
53   struct udphdr {
54          u_int16_t       uh_sport;               /* source port */
55          u_int16_t       uh_dport;               /* destination port */
56          int16_t uh_ulen;                /* udp length */
57          u_int16_t       uh_sum;                 /* udp checksum */
58 < };
58 > } PACKED__;
59 >
60 > #ifdef PRAGMA_PACK_SUPPORTED
61 > #pragma pack(0)
62 > #endif
63  
64   /*
65   * UDP kernel structures and variables.
# Line 94 | Line 102 | struct udpstat {
102  
103   extern struct udpstat udpstat;
104   extern struct socket udb;
105 + struct mbuf;
106  
107   void udp_init _P((void));
108   void udp_input _P((register struct mbuf *, int));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines