Revision b6dce92e slirp/udp.c
b/slirp/udp.c | ||
---|---|---|
41 | 41 |
#include <slirp.h> |
42 | 42 |
#include "ip_icmp.h" |
43 | 43 |
|
44 |
static u_int8_t udp_tos(struct socket *so);
|
|
44 |
static uint8_t udp_tos(struct socket *so); |
|
45 | 45 |
|
46 | 46 |
void |
47 | 47 |
udp_init(Slirp *slirp) |
... | ... | |
88 | 88 |
* Make mbuf data length reflect UDP length. |
89 | 89 |
* If not enough data to reflect UDP length, drop. |
90 | 90 |
*/ |
91 |
len = ntohs((u_int16_t)uh->uh_ulen);
|
|
91 |
len = ntohs((uint16_t)uh->uh_ulen); |
|
92 | 92 |
|
93 | 93 |
if (ip->ip_len != len) { |
94 | 94 |
if (len > ip->ip_len) { |
... | ... | |
321 | 321 |
{0, 0, 0, 0} |
322 | 322 |
}; |
323 | 323 |
|
324 |
static u_int8_t
|
|
324 |
static uint8_t |
|
325 | 325 |
udp_tos(struct socket *so) |
326 | 326 |
{ |
327 | 327 |
int i = 0; |
... | ... | |
339 | 339 |
} |
340 | 340 |
|
341 | 341 |
struct socket * |
342 |
udp_listen(Slirp *slirp, u_int32_t haddr, u_int hport, u_int32_t laddr,
|
|
342 |
udp_listen(Slirp *slirp, uint32_t haddr, u_int hport, uint32_t laddr,
|
|
343 | 343 |
u_int lport, int flags) |
344 | 344 |
{ |
345 | 345 |
struct sockaddr_in addr; |
Also available in: Unified diff