summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-07-26 16:43:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-07-26 16:43:32 +0000
commit224f973b72f39949d041a5151472ecbf43add0a1 (patch)
tree648deb455b0c938aa54f5d56af521bc2880cd3db /usr.bin
parent1fc179d68fa68a6cc2bb7b1b830f8cc1621d44b3 (diff)
TIMEOUT* values are not part of the protocol. tftp.h is a namespace
export of the protocol. you shall not add non-protocol stuff to such a file, period.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tftp/extern.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tftp/extern.h b/usr.bin/tftp/extern.h
index 97b6430f7ae..16e99e39b1d 100644
--- a/usr.bin/tftp/extern.h
+++ b/usr.bin/tftp/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.4 2003/06/03 02:56:18 millert Exp $ */
+/* $OpenBSD: extern.h,v 1.5 2006/07/26 16:43:31 deraadt Exp $ */
/* $NetBSD: extern.h,v 1.2 1994/12/08 09:51:24 jtc Exp $ */
/*
@@ -34,3 +34,7 @@
void recvfile(int, char *, char *);
void sendfile(int, char *, char *);
+
+#define TIMEOUT 5 /* packet rexmt timeout */
+#define TIMEOUT_MIN 1 /* minimal packet rexmt timeout */
+#define TIMEOUT_MAX 255 /* maximal packet rexmt timeout */