[syslinux] tftp-hpa server hooks to external programs

H. Peter Anvin hpa at zytor.com
Fri Aug 13 03:18:03 PDT 2004


Pierre Neyron wrote:
> 
> I wrote a patch to tftp-hpa which provides the functionality you need: I
> added a -g switch which define a script to be run if the requested file
> is not found. The output of this script is then sent to the tftp client.
> I also patched tftpd man, so you should find all the documentation needed.
> 
> This patch was actually developped against tftpd-hpa debian source
> package (unstable 0.36-1), but it should work out of the box with
> tftp-hpa 0.36 sources. You can download it there:
> http://npf.free.fr/tftpd-hpa/tftp-hpa-0.36-1_0.36-1cm.patch
> 
> NB:
> - I use the -g switch to activate the functionality, but I am wondering
> if using a new remap action instead may be a better way to handle it.
> - I also added a -f switch to run the server in the foreground (a la
> named or dhcpd) for debugging purposes.
> - some read and write were replaced with fread ant fwrite as it was bug
> prone.
> 

I would prefer to have it using a rewrite rule for doing this.  I think 
that would be a better idea.

The second thing that I'd like to ask is to make sure the tsize option 
works when this option is active.

	-hpa




More information about the Syslinux mailing list