feat(pxe): TFTP option negotiation and PXE boot fixes - #3
Merged
Conversation
Implement RFC 2347 TFTP option negotiation (OACK) with support for blksize and tsize. This fixes UEFI PXE clients (e.g. Fujitsu Esprimo) that request blksize=1468 and refuse DATA without a preceding OACK. Also: - Bind TFTP transfer sockets to the interface IPv4 address instead of 0.0.0.0 to ensure replies originate from the expected server IP. - Force IPv4-only UDP sockets (udp4) for the TFTP control socket. - Add sanitizeTFTPName to strip trailing junk bytes from RRQ filenames. - Add prominent DHCP MAC logging line for easier client identification. - Update router-extras.toml with VLAN address, reservations and per-MAC PXE boot files for T410i, Fujitsu and the Lenovo test machine. Validated on BPI-R1 with ThinkPad T410i (legacy) and Fujitsu Esprimo (UEFI) PXE booting into the netboot.xyz menu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement RFC 2347 TFTP option negotiation (OACK) with support for blksize and tsize. This fixes UEFI PXE clients (e.g. Fujitsu Esprimo) that request blksize=1468 and refuse DATA without a preceding OACK.
Also:
Validated on BPI-R1 with ThinkPad T410i (legacy) and Fujitsu Esprimo (UEFI) PXE booting into the netboot.xyz menu.