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. |
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)); |