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

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.

RFC 3396 option splitting for concatenation-requiring options has also
been introduce as a separate patch.

Anshu Kumari (7):
  dhcp: Refactor fill_one() to operate on a generic buffer
  dhcp: Add option state management with enum opt_state
  dhcp: Add option overload
  dhcp: Add --dhcp-opt with option table and value parser
  dhcp: Add --dhcp-boot command-line option
  dhcp: Add RFC 3396 option splitting for concatenation-requiring
    options
  dhcp: Handle FQDN option with RFC 3396 concatenation

 conf.c  |  30 ++-
 dhcp.c  | 591 +++++++++++++++++++++++++++++++++++++++++++++++++++-----
 dhcp.h  |   2 +
 passt.1 |  49 +++++
 4 files changed, 621 insertions(+), 51 deletions(-)

-- 
2.54.0


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

end of thread, other threads:[~2026-07-17 17:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-17 17:56 [PATCH v5 0/7] Add --dhcp-boot and --dhcp-opt options Anshu Kumari
2026-07-17 17:56 ` [PATCH v5 1/7] dhcp: Refactor fill_one() to operate on a generic buffer Anshu Kumari
2026-07-17 17:56 ` [PATCH v5 2/7] dhcp: Add option state management with enum opt_state Anshu Kumari
2026-07-17 17:56 ` [PATCH v5 3/7] dhcp: Add option overload Anshu Kumari
2026-07-17 17:56 ` [PATCH v5 4/7] dhcp: Add --dhcp-opt with option table and value parser Anshu Kumari
2026-07-17 17:56 ` [PATCH v5 5/7] dhcp: Add --dhcp-boot command-line option Anshu Kumari
2026-07-17 17:56 ` [PATCH v5 6/7] dhcp: Add RFC 3396 option splitting for concatenation-requiring options Anshu Kumari
2026-07-17 17:56 ` [PATCH v5 7/7] dhcp: Handle FQDN option with RFC 3396 concatenation 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).