# | 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. |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |