OpenBSD CVS

CVS log for src/usr.bin/tftp/tftp.c


[BACK] Up to [local] / src / usr.bin / tftp

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.25 / (download) - annotate - [select for diffs], Sun Sep 10 07:29:39 2017 UTC (6 years, 8 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, HEAD
Changes since 1.24: +8 -7 lines
Diff to previous 1.24 (colored)

Use monotonic clock for statistics display. From Scott Cheloha.

ok dlg

Revision 1.24 / (download) - annotate - [select for diffs], Tue Oct 21 06:15:16 2014 UTC (9 years, 7 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.23: +16 -11 lines
Diff to previous 1.23 (colored)

cope with sending or receiving files beyond 65536 blocks in length.

reported by justin mayes on misc@

ok deraadt@

Revision 1.23 / (download) - annotate - [select for diffs], Tue May 1 04:23:21 2012 UTC (12 years ago) by gsoares
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.22: +58 -20 lines
Diff to previous 1.22 (colored)

IPv6 support; mostly a sync with netbsd code done by itojun@

tweaks/OK henning@ sthen@ jmc@ jasper@

feedback/tests weerd@ brad@ (thanks)

Revision 1.22 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:44 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.21: +1 -9 lines
Diff to previous 1.21 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.21 / (download) - annotate - [select for diffs], Fri May 11 01:47:48 2007 UTC (17 years ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.20: +6 -4 lines
Diff to previous 1.20 (colored)

Delinting from tbert <bret dot lambert at gmail dot com>

OK moritz@

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jul 26 09:10:03 2006 UTC (17 years, 9 months ago) by mglocker
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.19: +8 -7 lines
Diff to previous 1.19 (colored)

Fixing several timeout quirks at tftpd and tftp:

- move TIMEOUT* defines to arpa/tftp.h, as they are used several times
  in tftpd and tftp, and the values are part of the RFC definition.
- tftpd and tftp did count the total retransmission time in retries
  instead in seconds.  fixed.
- tftpd rexmt timeout was hardcoded by a define and therefore didn't
  changed when the timeout option was sent.  fixed.
- limit total retransmission timeout in tftp to also 255 seconds.
- replace obvious atoi()'s by strtonum().

ok claudio@

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 24 17:29:58 2006 UTC (17 years, 9 months ago) by mglocker
Branch: MAIN
Changes since 1.18: +174 -20 lines
Diff to previous 1.18 (colored)

Adding TFTP Option Extension to the tftp client according to RFC 2347.

Implemented options are:

- TFTP Blocksize Option, RFC 2348
- TFTP Timeout Interval and Transfer Size Options, RFC 2349

We have now on the tftp client side the same options supported as in
our tftp server.

ok claudio@

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jul 20 09:42:44 2006 UTC (17 years, 10 months ago) by mglocker
Branch: MAIN
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

Add blksize option support for tftpd according to RFC 2348.

Note:
While testing the new option, we noticed that our stable tftpd has
a problem if any option is set (e.g. tsize) and you try to put a file.
This has nothing todo with our new blksize option.  We fix this as
next.

ok claudio@

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jul 12 16:58:51 2006 UTC (17 years, 10 months ago) by mglocker
Branch: MAIN
Changes since 1.16: +49 -46 lines
Diff to previous 1.16 (colored)

knf.  no binary change.

ok beck@ claudio@

Revision 1.16 / (download) - annotate - [select for diffs], Mon May 8 13:02:51 2006 UTC (18 years ago) by claudio
Branch: MAIN
Changes since 1.15: +197 -157 lines
Diff to previous 1.15 (colored)

Remove unsave setjmp/longjmp calls that were used in signal handlers with
a more sane poll loop. Includes some style(9) changes.
Diff made by Marcus Glocker

Revision 1.15 / (download) - annotate - [select for diffs], Wed Sep 24 20:21:40 2003 UTC (20 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.14: +11 -15 lines
Diff to previous 1.14 (colored)

knf

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 25 15:45:10 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.13: +10 -26 lines
Diff to previous 1.13 (colored)

ansi

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jun 10 22:20:53 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

mostly ansi cleanup; pval ok

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:18 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.11: +3 -7 lines
Diff to previous 1.11 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Apr 17 17:17:27 2003 UTC (21 years, 1 month ago) by henning
Branch: MAIN
Changes since 1.10: +14 -17 lines
Diff to previous 1.10 (colored)

nuke strcpy + -Wall

parts from and ok mickey@

Revision 1.10 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:55 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.9: +9 -9 lines
Diff to previous 1.9 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Nov 19 19:02:16 2001 UTC (22 years, 6 months ago) by mpech
Branch: MAIN
Changes since 1.8: +10 -10 lines
Diff to previous 1.8 (colored)

kill more registers

millert@ ok

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 31 14:32:15 2001 UTC (22 years, 9 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.7: +6 -5 lines
Diff to previous 1.7 (colored)

o) better struct handling;
o) use __progname in openlog(3);
o) better ERROR packets handling;

millert@ ok

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 22 01:34:01 2001 UTC (23 years, 2 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.6: +8 -8 lines
Diff to previous 1.6 (colored)

use err/warn, space police

Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 7 18:13:14 2000 UTC (23 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

tftp argv parsing overflow; fix by vogelke@dnaco.net and I

Revision 1.5 / (download) - annotate - [select for diffs], Tue Feb 1 03:23:42 2000 UTC (24 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.4: +2 -3 lines
Diff to previous 1.4 (colored)

no need to extern int errno if errno.h is included

Revision 1.4 / (download) - annotate - [select for diffs], Wed Aug 6 06:43:45 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.3: +5 -2 lines
Diff to previous 1.3 (colored)

save errno in mangly handlers

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jan 17 07:13:32 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.2: +3 -4 lines
Diff to previous 1.2 (colored)

r?index -> strr?chr

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 26 05:40:35 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

rcsid

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:46:16 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:46:16 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.