lukem
c493aef500
fix -Wsign-compare issues
2009-01-18 07:11:45 +00:00
seanb
914c0c04ad
- Malformed multicast option not being checked
...
for correctly. Could fault client.
- 'mc' (master client) field not being examined
properly. Actually looking at addr field so
proably always working out to non 0 (master).
2008-12-11 18:40:02 +00:00
christos
528614c11b
sprinkle volatile.
2006-10-22 16:45:35 +00:00
christos
3f7563e969
Coverity CID 4119: Check negative returns (from Arnaud Lacombe)
2006-09-29 14:42:59 +00:00
jmcneill
22c701ecab
Add support for the multicast TFTP option. Reviewed by Rui Paulo.
2006-07-21 17:49:00 +00:00
christos
9d0203193c
Pass lint.
2006-04-09 18:45:19 +00:00
martin
cf67045dd0
Do not use %d for size_t!
2006-02-01 20:26:28 +00:00
christos
643cfdb62a
PR/32680: Yves-Emmanuel JUTARD: Improve some error checking that causes
...
memory corruption on out of memory errors.
While I am here, remove some lint.
2006-01-31 17:36:56 +00:00
ross
b4995580bb
Fix old-style C code, update to WARNS=4.
...
Also, move file-scope .c extern decls to the .h file
2005-11-20 19:28:23 +00:00
lukem
9aeda3fd63
appease gcc -Wuninitialized
2005-06-02 03:11:23 +00:00
he
0e68544091
Move declaration of local variables to start of function instead of
...
inside a block after code. Fixes build problem for vax, which still
uses gcc 2.95.3.
2004-10-10 22:15:34 +00:00
erh
c6f93ec983
Make the extended options work on little endian machines.
...
Allow files smaller than 512 bytes to be received w/o a timeout.
2004-10-02 05:05:35 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
briggs
4441128638
Support negotiation and use of TFTP Option Extension (rfc 2347) for the
...
'blksize' option (rfc 2348) and the 'timeout' and 'tsize' options (rfc 2349).
Contributed by Wasabi Systems, Inc.
2003-06-11 01:43:52 +00:00
wiz
2f4d0544fa
Fix sendto return value check (incomplete change in 1.14).
...
Noted by Brian Ginsbach in PR 19842.
2003-02-01 16:42:31 +00:00
itojun
209b37f0e1
fix argument validation mistake in setpeer().
...
From: Hiroyuki YAMAMORI <h-yamamo@db3.so-net.ne.jp>
2000-12-30 18:00:18 +00:00
itojun
78673096cc
make sure we do not overrun tp->th_msg on ERROR packet.
...
correct ERROR length to include terminating \0 (RFC1350 page 8).
2000-11-21 14:58:21 +00:00
dogcow
050d9a2b9c
A too hasty checkin (and lack of -Wsign-compare) made send() never fail.
...
Newly added 'unsigned' removed from vars that shouldn't have had it.
2000-10-22 01:42:15 +00:00
dogcow
90c3bfc9b0
defs had 'short block' for blocksize; changed defs to be unsigned.
...
added note to tftpd.8 that this bug hits multiple tftp clients.
2000-10-18 01:35:45 +00:00
mycroft
f5d7100e26
Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
...
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
itojun
a40e2f2822
IPv6 support.
...
clarify a bit (specifically, routines in tftp.c now does not
modify "peeraddr")
1999-07-12 20:19:20 +00:00
christos
e42e202cfb
char -> unsigned char
...
<fcntl.h> instead of <sys/file.h>
compensate for different types in th_stuff
1998-12-19 22:41:21 +00:00
mycroft
66427701ea
const poisoning.
1998-07-26 15:23:39 +00:00
lukem
0471adfdaa
deprecate register, use err/warn, fix .Nm usage
1997-10-20 00:46:37 +00:00
mrg
11eb9f8e06
WARNS?=1
1997-10-07 09:19:40 +00:00
cgd
7d9d6e9faf
needs string.h
1995-04-29 05:55:25 +00:00
jtc
1bbda10eb1
Merged with 4.4lite.
...
Changed to conform to NetBSD's new RCS Id convention.
1994-12-08 09:51:23 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
mycroft
e3769df787
Cleanup for GCC 2.
1993-04-21 06:00:35 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00