public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH v4 0/4] Add --dhcp-boot and --dhcp-opt options
@ 2026-06-17 13:22 Anshu Kumari
  2026-06-17 13:22 ` [PATCH v4 1/4] dhcp: Refactor fill_one() to operate on a generic buffer Anshu Kumari
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Anshu Kumari @ 2026-06-17 13:22 UTC (permalink / raw)
  To: passt-dev, anskuma, sbrivio; +Cc: jmaloy, david, lvivier

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.

v4:
   Restructured series from 6 patches to 4:
  - 1/4 refactor fill_one()
  - 2/4 option overload
  - 3/4 --dhcp-opt with parser and man page
  - 4/4 --dhcp-boot with man page

Anshu Kumari (4):
  dhcp: Refactor fill_one() to operate on a generic buffer
  dhcp: Add option overload
  dhcp: Add --dhcp-opt with option table and value parser
  conf: Add --dhcp-boot command-line option

 conf.c  |  50 ++++++++-
 dhcp.c  | 321 ++++++++++++++++++++++++++++++++++++++++++++++++++++----
 dhcp.h  |   2 +
 passt.1 |  49 +++++++++
 passt.h |   6 ++
 5 files changed, 407 insertions(+), 21 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-17 13:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-17 13:22 [PATCH v4 0/4] Add --dhcp-boot and --dhcp-opt options Anshu Kumari
2026-06-17 13:22 ` [PATCH v4 1/4] dhcp: Refactor fill_one() to operate on a generic buffer Anshu Kumari
2026-06-17 13:22 ` [PATCH v4 2/4] dhcp: Add option overload Anshu Kumari
2026-06-17 13:22 ` [PATCH v4 3/4] dhcp: Add --dhcp-opt with option table and value parser Anshu Kumari
2026-06-17 13:22 ` [PATCH v4 4/4] conf: Add --dhcp-boot command-line option Anshu Kumari

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).