From: Anshu Kumari <anskuma@redhat.com>
To: sbrivio@redhat.com, anskuma@redhat.com, passt-dev@passt.top
Cc: david@gibson.dropbear.id.au, lvivier@redhat.com, jmaloy@redhat.com
Subject: [PATCH v2 0/2] dhcpv6: Add --dhcpv6-opt for custom DHCPv6 options
Date: Thu, 18 Jun 2026 17:35:27 +0530 [thread overview]
Message-ID: <20260618120529.1768765-1-anskuma@redhat.com> (raw)
This series adds a --dhcpv6-opt CODE,VALUE command-line option to
inject custom options into DHCPv6 replies, complementing the existing
--dhcp-opt support for DHCPv4.
The primary use case is UEFI HTTP Boot, which requires Vendor Class
(option 16) with the correct enterprise-number + length-prefixed wire
encoding per RFC 8415 Section 21.16, and Boot File URL (option 59).
Value formats are determined automatically from the option code via a
type table. Supported types include plain strings, IPv6
addresses (single and list), 8/16/32-bit integers, vendor class
(ENTERPRISE:DATA), and length-prefixed string lists.
Anshu Kumari (2):
dhcpv6: Add --dhcpv6-opt with option type table and value parser
dhcpv6: Inject custom options into DHCPv6 replies
conf.c | 60 ++++++++++++-
dhcpv6.c | 253 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
dhcpv6.h | 2 +
passt.1 | 31 +++++++
passt.h | 12 +++
5 files changed, 357 insertions(+), 1 deletion(-)
--
2.54.0
next reply other threads:[~2026-06-18 12:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-18 12:05 Anshu Kumari [this message]
2026-06-18 12:05 ` [PATCH v2 1/2] dhcpv6: Add --dhcpv6-opt with option type table and value parser Anshu Kumari
2026-06-19 4:00 ` David Gibson
2026-06-18 12:05 ` [PATCH v2 2/2] dhcpv6: Inject custom options into DHCPv6 replies Anshu Kumari
2026-06-19 4:03 ` David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260618120529.1768765-1-anskuma@redhat.com \
--to=anskuma@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=jmaloy@redhat.com \
--cc=lvivier@redhat.com \
--cc=passt-dev@passt.top \
--cc=sbrivio@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).