Commit graph

24 commits

Author SHA1 Message Date
H. Peter Anvin
33051a296c signals: require and always use sigaction()
tftpd already requires sigaction() to compile, so there is no reason
to use anything else. It also allows for nicer combination of flags.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2024-06-10 14:36:28 -07:00
H. Peter Anvin
1f4b33a1f7 Modernize: use sigaction() whenever possible. Remove uses of common.
bsd_signal() may not be defined, and there is really no reason to even
try to use it if sigaction() is avaiable; using sigaction() guarantees
the semantics we really want.

Replace uses of common variables with explicit instantiation and
extern declarations in a header file.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2024-05-29 15:34:57 -07:00
Karsten Keil
28f22b6591 Add support for IPv6 in the server and client.
Add support for IPv6 in the server and client.
You can force the use of IPv4 or IPv6 only with new
-4 and -6 commandline options, if IPv6 support was compiled in.

Signed-off-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-07-23 14:29:41 -04:00
H. Peter Anvin
50f22a7ad2 Remove long since obsolete ID tags 2008-07-08 17:30:27 -04:00
H. Peter Anvin
22accddda0 Reformat the source code
The source code was a mix of different styles; normalize on NASM
style; basically K&R style with 4 space indentation.
2008-07-08 17:14:44 -04:00
H. Peter Anvin
14993bc916 Introduce socklen_t; detect non-local (e.g. broadcast) receive addresses 2006-10-04 21:54:04 -07:00
H. Peter Anvin
40133b212b Move common code to a common/ subdirectory 2006-10-04 10:19:06 -07:00
hpa
0eea078aec Command-line parsing that doesn't depend on getopt() 2004-01-08 20:47:00 +00:00
hpa
571deaa36b Apply some code cleanups that apparently fix Solaris 7 gcc problems. 2003-04-12 06:54:58 +00:00
hpa
b3ec0c58e6 Better error messages. 2002-11-08 01:10:08 +00:00
hpa
64ae5fda79 -> Clean up the use of autoconf macros a bit.
-> Always pass O_TEXT/O_BINARY and "t"/"b" respectively, as appropriate.
2001-11-29 22:02:52 +00:00
hpa
3d401fa4c9 Be paranoid about multiple inclusions (apparently some systems don't like
it for certain header files.)  Be a little bit more careful in setting
up the standard environment in config.h.  This is AIX portability work.
2001-11-16 20:15:27 +00:00
hpa
06bfb2bf4f - Better parsing of the "connect" command (tftp).
- Move missing header file stuff consistently into config.h.
- Make "make -j" work correctly.
2001-11-13 19:58:32 +00:00
hpa
d2206bf9b9 Fix the Sorcerer's Apprentice bug in both the client and the server. 2001-11-13 04:16:12 +00:00
hpa
a58b9604c5 Even more changes to handle block number wrap correctly.
Make the client officially supported.  It's better than most things
that are already out there.
2001-11-13 03:39:32 +00:00
hpa
480bee14e9 (Finally) handle block number wraparound correctly. 2001-11-13 03:11:52 +00:00
hpa
9753e234c6 Add readline support in tftp client; some additional minor cleanups. 2001-11-12 23:27:48 +00:00
hpa
b46e220d49 A few more renames; fix <inttypes.h> emulation. 2001-11-12 18:14:14 +00:00
hpa
5b0cb11445 Support "constipation" -- compile cleanly with -Wwrite-strings 2001-08-10 18:25:08 +00:00
hpa
266427bc5b Portability improvements. Now compiles and works on Solaris 8, as well
as Linux.
2001-08-03 03:17:57 +00:00
hpa
0034637792 Quiet more warnings. 2001-07-21 01:54:26 +00:00
hpa
c92bf0f3d4 More merging mania... 2001-03-30 01:30:49 +00:00
hpa
7a15e40374 Fix massive lossage: 0.15 based on an outdated repository!!! 2001-03-30 01:08:12 +00:00
hpa
09f975fa4c Initial revision 1999-09-26 06:32:41 +00:00