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 |
|
* |
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. |