[gPXE] how to set TFTP blksize

Joshua Oreman oremanj at mit.edu
Wed Jan 6 03:59:26 EST 2010


2010/1/6 Sean Lv <lvjie at kaspersky.com.cn>:
> Hello Doug
>
> Thanks. Are you sure? We didn't find the setting about UDP buffer size on
> TFTP server. I am using Win SRV 2008.
>
> I checked the TFTP packets from client to server. The blksize information is
> encapsulated in the UDP packets.  There is another evidence. When gPXE was
> loaded then fetch any image or boot loader, the TFTP blksize=1432(always).
> When I load other kind of boot loader from native PXE(built-in NIC), the
> TFTP blksize=1456.  I am not sure if you know GRUB4DOS. It's a boot loader.
> I can set blksize with CLI: pxe blksize value.  So I think the blksize
> should be set on client side. Agree? But how to do it in gPXE?

Edit include/gpxe/tftp.h to change TFTP_MAX_BLKSIZE from 1432 to 1456.
Alternatively, insert a call to tftp_set_request_blksize() somewhere
appropriate. There is no exposed configuration interface for this
value because it very rarely needs to be changed and is not worth the
code size cost.

-- Josh


More information about the gPXE mailing list