summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2013-04-05 02:32:51 +0200
committerrofl0r <retnyg@gmx.net>2013-04-05 02:32:51 +0200
commitbaec93cb5819058e36d44a427db708260f320bd1 (patch)
treefe02e8dd752a533e861c880be4fad2279736d6a5
parentf77bab5933071c46edc3da22b8c344533dd5fca3 (diff)
downloadmusl-baec93cb5819058e36d44a427db708260f320bd1.tar.gz
musl-baec93cb5819058e36d44a427db708260f320bd1.tar.bz2
musl-baec93cb5819058e36d44a427db708260f320bd1.tar.xz
musl-baec93cb5819058e36d44a427db708260f320bd1.zip
add arpa/tftp.h
-rw-r--r--include/arpa/tftp.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/arpa/tftp.h b/include/arpa/tftp.h
new file mode 100644
index 00000000..799c54f2
--- /dev/null
+++ b/include/arpa/tftp.h
@@ -0,0 +1,31 @@
+#ifndef _ARPA_TFTP_H
+#define _ARPA_TFTP_H
+#define SEGSIZE 512
+#define RRQ 01
+#define WRQ 02
+#define DATA 03
+#define ACK 04
+#define ERROR 05
+struct tftphdr {
+ short th_opcode;
+ union {
+ unsigned short tu_block;
+ short tu_code;
+ char tu_stuff[1];
+ } th_u;
+ char th_data[1];
+};
+#define th_block th_u.tu_block
+#define th_code th_u.tu_code
+#define th_stuff th_u.tu_stuff
+#define th_msg th_data
+#define EUNDEF 0
+#define ENOTFOUND 1
+#define EACCESS 2
+#define ENOSPACE 3
+#define EBADOP 4
+#define EBADID 5
+#define EEXISTS 6
+#define ENOUSER 7
+#endif
+