Revision b6dce92e slirp/tftp.h
b/slirp/tftp.h | ||
---|---|---|
16 | 16 |
struct tftp_t { |
17 | 17 |
struct ip ip; |
18 | 18 |
struct udphdr udp; |
19 |
u_int16_t tp_op;
|
|
19 |
uint16_t tp_op; |
|
20 | 20 |
union { |
21 | 21 |
struct { |
22 |
u_int16_t tp_block_nr;
|
|
23 |
u_int8_t tp_buf[512];
|
|
22 |
uint16_t tp_block_nr; |
|
23 |
uint8_t tp_buf[512]; |
|
24 | 24 |
} tp_data; |
25 | 25 |
struct { |
26 |
u_int16_t tp_error_code;
|
|
27 |
u_int8_t tp_msg[512];
|
|
26 |
uint16_t tp_error_code; |
|
27 |
uint8_t tp_msg[512]; |
|
28 | 28 |
} tp_error; |
29 |
u_int8_t tp_buf[512 + 2];
|
|
29 |
uint8_t tp_buf[512 + 2]; |
|
30 | 30 |
} x; |
31 | 31 |
}; |
32 | 32 |
|
... | ... | |
35 | 35 |
char *filename; |
36 | 36 |
|
37 | 37 |
struct in_addr client_ip; |
38 |
u_int16_t client_port;
|
|
38 |
uint16_t client_port; |
|
39 | 39 |
|
40 | 40 |
int timestamp; |
41 | 41 |
}; |
Also available in: Unified diff