VirtualBox

source: vbox/trunk/src/VBox/Devices/Network/slirp/tftp.h@ 1048

最後變更 在這個檔案從1048是 1033,由 vboxsync 提交於 18 年 前

Big change to make slirp fully instantiatable (replace all global
variables with local ones, passing a reference to the state/config
structure to all places which are interested). You can now have as many
cards in the guest configured for NAT networking as you want.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 665 位元組
 
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
16struct tftp_t {
17 struct ip ip;
18 struct udphdr udp;
19 u_int16_t tp_op;
20 union {
21 struct {
22 u_int16_t tp_block_nr;
23 u_int8_t tp_buf[512];
24 } tp_data;
25 struct {
26 u_int16_t tp_error_code;
27 u_int8_t tp_msg[512];
28 } tp_error;
29 u_int8_t tp_buf[512 + 2];
30 } x;
31};
32
33#ifdef VBOX
34void tftp_input(PNATState pData, struct mbuf *m);
35#else /* !VBOX */
36void tftp_input(struct mbuf *m);
37#endif /* !VBOX */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette