[gPXE] how to set TFTP blksize
Sean Lv
lvjie at kaspersky.com.cn
Wed Jan 6 04:03:57 EST 2010
Hi Joshua
It's clear. Thanks and happy New Year!
Thanks
Best Regards
Sean Lv Jie
-----Original Message-----
From: Joshua Oreman [mailto:oremanj at MIT.EDU]
Sent: 2010年1月6日 16:59
To: Sean Lv
Cc: doug at foruminfosystems.com; gpxe at etherboot.org
Subject: Re: [gPXE] how to set TFTP blksize
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