VirtualBox

source: vbox/trunk/src/VBox/NetworkServices/NAT/tftp.h@ 60066

Last change on this file since 60066 was 56300, checked in by vboxsync, 9 years ago

NetworkServices: Updated (C) year.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 1.4 KB
Line 
1/* $Id: tftp.h 56300 2015-06-09 14:36:22Z vboxsync $ */
2/** @file
3 * NAT Network - Definitions for TFTP protocol.
4 */
5
6/*
7 * Copyright (C) 2013-2015 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef _TFTP_H_
19#define _TFTP_H_
20
21#define TFTP_SERVER_PORT 69
22
23/* opcodes */
24#define TFTP_RRQ 1
25#define TFTP_WRQ 2
26#define TFTP_DATA 3
27#define TFTP_ACK 4
28#define TFTP_ERROR 5
29/* RFC 2347 */
30#define TFTP_OACK 6
31
32
33/* error codes */
34#define TFTP_EUNDEF 0 /* Not defined, see error message (if any). */
35#define TFTP_ENOENT 1 /* File not found. */
36#define TFTP_EACCESS 2 /* Access violation. */
37#define TFTP_EFBIG 3 /* Disk full or allocation exceeded. */
38#define TFTP_ENOSYS 4 /* Illegal TFTP operation. */
39#define TFTP_ESRCH 5 /* Unknown transfer ID. */
40#define TFTP_EEXIST 6 /* File already exists. */
41#define TFTP_EUSER 7 /* No such user. */
42/* RFC 2347 */
43#define TFTP_EONAK 8 /* Option refused. */
44
45
46#endif /* _TFTP_H_ */
Note: See TracBrowser for help on using the repository browser.

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