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.4 by asvitkine, 2012-03-30T01:10:28Z

# Line 10 | Line 10
10   * 2. Redistributions in binary form must reproduce the above copyright
11   *    notice, this list of conditions and the following disclaimer in the
12   *    documentation and/or other materials provided with the distribution.
13 < * 3. All advertising materials mentioning features or use of this software
14 < *    must display the following acknowledgement:
15 < *      This product includes software developed by the University of
16 < *      California, Berkeley and its contributors.
17 < * 4. Neither the name of the University nor the names of its contributors
13 > * 3. Neither the name of the University nor the names of its contributors
14   *    may be used to endorse or promote products derived from this software
15   *    without specific prior written permission.
16   *
# Line 46 | Line 42 | extern struct socket *udp_last_so;
42   * Udp protocol header.
43   * Per RFC 768, September, 1981.
44   */
45 + #ifdef PRAGMA_PACK_SUPPORTED
46 + #pragma pack(1)
47 + #endif
48 +
49   struct udphdr {
50          u_int16_t       uh_sport;               /* source port */
51          u_int16_t       uh_dport;               /* destination port */
52          int16_t uh_ulen;                /* udp length */
53          u_int16_t       uh_sum;                 /* udp checksum */
54 < };
54 > } PACKED__;
55 >
56 > #ifdef PRAGMA_PACK_SUPPORTED
57 > #pragma pack(0)
58 > #endif
59  
60   /*
61   * UDP kernel structures and variables.
# Line 94 | Line 98 | struct udpstat {
98  
99   extern struct udpstat udpstat;
100   extern struct socket udb;
101 + struct mbuf;
102  
103   void udp_init _P((void));
104   void udp_input _P((register struct mbuf *, int));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines