- Jun 22, 2011
-
-
H. Peter Anvin authored
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-
H. Peter Anvin authored
-
H. Peter Anvin authored
Part of my Intel job now... Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-
H. Peter Anvin authored
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-
- Jun 10, 2011
-
-
H. Peter Anvin authored
Simplify the option parsing to make use of the fact that all the options we support are integer options. This fixes a buffer overflow in the utimeout option. Reported-by: Timo Warns <warns@pre-sense.de> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-
- May 13, 2011
-
-
H. Peter Anvin authored
Duplicate WRQ packets can really hurt, since they end up accessing the same file. This attempts to lock the file, which should work for the case where a correctly implemented TFTP stack uses the same session ID (port number) for each retry; in any other case they look like multiple sessions to the same file and it is a crapshoot if we end up with the correct one. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
- May 10, 2011
-
-
H. Peter Anvin authored
-
- May 05, 2011
-
-
H. Peter Anvin authored
struct formats should be static const; make it so and mark all users const. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
H. Peter Anvin authored
Instead of taking a boolean value for get/put, pass a character; this allows us to extend the number of possibilities in the future. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
- Sep 21, 2010
-
-
H. Peter Anvin authored
-
Tim Newsome authored
When uploading a file that is larger than 32MB (with standard block size), the block number will roll over. If it rolls over to 0, the code mistakenly resends the option ack frame instead of acknowledging the 0 data block. This change fixes that behavior.
-
- Dec 12, 2009
-
-
H. Peter Anvin authored
If we can't figure out the source address, we have the "fall on our face" version of myrecvfrom(); make sure its prototype matches. This handles building on machines where sockaddr_t != int and yet there is no way to get the source address. This apparently affects at least one version of Solaris. Reported-by: Georg Schwarz <georg.schwarz@freenet.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
- Sep 14, 2009
-
-
H. Peter Anvin authored
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
H. Peter Anvin authored
-
Ferenc Wagner authored
Setting the umask moved later, right before entering the select loop, so that it does not affect the permissions of the pid file. Signed-off-by: Ferenc Wagner <wferi@niif.hu> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
Ferenc Wagner authored
Signed-off-by: Ferenc Wagner <wferi@niif.hu> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
Ferenc Wagner authored
Signed-off-by: Ferenc Wagner <wferi@niif.hu> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
Ferenc Wagner authored
Just in case syslog has been restarted, bounce the log socket before the chroot. Signed-off-by: Ferenc Wagner <wferi@niif.hu> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
Ferenc Wagner authored
mandir et all uses $(datarootdir), not $(DATAROOTDIR) Signed-off-by: Ferenc Wagner <wferi@niif.hu> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
- Feb 25, 2009
-
-
H. Peter Anvin authored
-
H. Peter Anvin authored
-
- Feb 16, 2009
-
-
H. Peter Anvin authored
We require GNU make, so we can have autoconf built from inside the Makefile. Just make autogen.sh do "make autoconf" for convenience.
-
H. Peter Anvin authored
-
H. Peter Anvin authored
-
Florian Lohoff authored
Use the correct file descriptors so we correctly turn off PMTU.
-
- Feb 02, 2009
-
-
H. Peter Anvin authored
Implement the "rollover" option, to set the rollover block number to anything other than zero. Apparently some idiots have gotten the idea that block numbers should roll over to one, rather than zero.
-
H. Peter Anvin authored
-
- Nov 14, 2008
-
-
Georg Schwarz authored
We need to cast IPv6 addresses from SOCKADDR_P() to struct in6_addr * on some platforms, including at least MacOS X.
-
H. Peter Anvin authored
-
H. Peter Anvin authored
If the AI_CANONNAME or AI_ADDRCONFIG flags are missing, just set them to zero. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
- Oct 20, 2008
-
-
H. Peter Anvin authored
-
H. Peter Anvin authored
-
Роман Донченко authored
This patch does two things: a) makes tftp-hpa to compile on systems with no IPv6 support (there were some IPv6 macros used unconditionally); b) removes a stray binary character, which was annoying.
-
- Aug 10, 2008
-
-
H. Peter Anvin authored
Support editline as an alternative to readline. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
Sridhar Samudrala authored
The following patch sets additional hints to restrict the addresses returned by getaddrinfo() to specify preferred socket type, protocol and a flag to return only v4/v6 addresses based on the configured addresses. Signed-off-by: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
- Aug 01, 2008
-
-
Karsten Keil authored
If a user does supply a IPv4 or IPv6 address but force the other type with -4 or -6, give an error. The patch also fix the special [::ffff:127.0.1] address handling, it work now if you bind to this address but only if you not force IPv6 only, it seems that the kernel does not signal connections to a IPv6 socket listen on [::ffff:127.0.0.1], if it was bound IPv6 only. I think we can live with it and do not need a special test for this address. Signed-off-by: Karsten Keil <kkeil@suse.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
- Jul 31, 2008
-
-
Karsten Keil authored
This patch detects numeric address types to avoid unnecessary warnings/errors. It also cleans up error printing to not print error messages on stderr in the deamon case. Signed-off-by: Karsten Keil <kkeil@suse.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
H. Peter Anvin authored
Add .gitignore file so "git status" is actually useful. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
H. Peter Anvin authored
Switch to using getopt_long(); include a version in case the platform lacks it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-
- Jul 30, 2008
-
-
H. Peter Anvin authored
Implement is_numeric_ipv6() as a state machine, so we can avoid in-place modification. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-