This series adds support for custom DHCP options in passt, enabling
network boot (PXE/UEFI HTTP Boot) and arbitrary DHCP option injection.
Two new command-line flags are introduced:
--dhcp-boot URL Sets the boot file URL (DHCP option 67 and the
legacy boot file field)
--dhcp-opt CODE,VALUE
Sets any DHCP option by numeric code, with
type-aware parsing per RFC 2132
The DHCP reply path is extended with option overload support (RFC 2132
option 52), allowing options to overflow into the file and sname fields
when the standard options area is full.
Anshu Kumari (6):
conf: Add --dhcp-opt command-line option
conf: Add --dhcp-boot command-line option
dhcp: Add option type table and value parser
dhcp: Refactor fill_one() to operate on a generic buffer
dhcp: Add option overload
doc: Add --dhcp-boot and --dhcp-opt to man page
conf.c | 29 ++++-
dhcp.c | 322 ++++++++++++++++++++++++++++++++++++++++++++++++++++----
dhcp.h | 1 +
passt.1 | 41 ++++++++
passt.h | 16 +++
5 files changed, 389 insertions(+), 20 deletions(-)
--
2.54.0