Last change
on this file since 15222 was 14964, checked in by vboxsync, 16 years ago |
slirp: code cosmetics for better readability (no semantics change)
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
663 bytes
|
Line | |
---|
1 | /* tftp defines */
|
---|
2 |
|
---|
3 | #define TFTP_SESSIONS_MAX 3
|
---|
4 |
|
---|
5 | #define TFTP_SERVER 69
|
---|
6 |
|
---|
7 | #define TFTP_RRQ 1
|
---|
8 | #define TFTP_WRQ 2
|
---|
9 | #define TFTP_DATA 3
|
---|
10 | #define TFTP_ACK 4
|
---|
11 | #define TFTP_ERROR 5
|
---|
12 | #define TFTP_OACK 6
|
---|
13 |
|
---|
14 | #define TFTP_FILENAME_MAX 512
|
---|
15 |
|
---|
16 | struct tftp_t
|
---|
17 | {
|
---|
18 | struct ip ip;
|
---|
19 | struct udphdr udp;
|
---|
20 | u_int16_t tp_op;
|
---|
21 | union
|
---|
22 | {
|
---|
23 | struct
|
---|
24 | {
|
---|
25 | u_int16_t tp_block_nr;
|
---|
26 | u_int8_t tp_buf[512];
|
---|
27 | } tp_data;
|
---|
28 | struct
|
---|
29 | {
|
---|
30 | u_int16_t tp_error_code;
|
---|
31 | u_int8_t tp_msg[512];
|
---|
32 | } tp_error;
|
---|
33 | u_int8_t tp_buf[512 + 2];
|
---|
34 | } x;
|
---|
35 | };
|
---|
36 |
|
---|
37 | void tftp_input(PNATState pData, struct mbuf *m);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.