From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=EpD8BgOf; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id 699645A0262 for ; Thu, 04 Jun 2026 13:00:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1780570834; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tsYQIqmToWtwjim83SqfSDAMLqQkQrlBYuG0dCB0osk=; b=EpD8BgOfSZuLUDuyVdKXAWDyPjGm8GkCM6BGiEf1Bt+GS4Aqma2VFLiwVY5IdzH9u+Jcb7 b1AtfUAhElvEkfj1a5NsRVqR4cN9YuG+GQX2xESmzwZIJtVRqHRl+8PYqR32eDV3N++1Sq w3VNbTUJeuQaNP/5Bcys1tdM99avh+w= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-596-Bs7IqpPAPbGFaV4M_MWVKA-1; Thu, 04 Jun 2026 07:00:33 -0400 X-MC-Unique: Bs7IqpPAPbGFaV4M_MWVKA-1 X-Mimecast-MFC-AGG-ID: Bs7IqpPAPbGFaV4M_MWVKA_1780570831 Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-5aa6129f7b1so354571e87.2 for ; Thu, 04 Jun 2026 04:00:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780570831; x=1781175631; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=tsYQIqmToWtwjim83SqfSDAMLqQkQrlBYuG0dCB0osk=; b=N7JoNZOK4Eh9nMJp/dFw+f38dH/4UbJmF2mgkjv/xtI52GNi7Bj1YhdZLRKZ9e+HIr 9YD+Bf8pcA3ePWI77a3SvhJh5uSRAu2xbKzhWGF6TrKNpSBqASebKY1BlJ2Q5N81FWpA DpejB0+tNCIvZtxxP5vEz842uc3aR2JhzuW/UmBNJO1TUHy9c3lhhNmOyILJs0aTk7If IIdR3PUojlKaJObR2JNGla8rVDkgu6cUL6jUARCaGf4sEWq4vRlASx8nx4KQPo2OvvQp L1NT/sV5G4qckQTZJVzrMCTB/Av00t58rNcRn6N2OCGvbuQ44358hBDOITkTnPaKoeJ1 3mVg== X-Gm-Message-State: AOJu0YwzuneIoenPTTI7AeTh1JDUKQ1eW1NV7B//u6bb/bIOdJCH0IDc CAUOpOGjbiqn7XcQNKn4o/wUxY/nkLdy0+pR0VmIqlyALQnJsoVYTm1NO04F8No7B+aSLzOV9ei GSBnYyVR8RtuWzoFTwAx4sQHodXqV9rzF+Yv2Je2jOulLUaV1r5jmz9Z0aMeJFuXJ4FCnvLtNWy 7QhyAjmsKVcXSF0uV2m4sOvtEfA8g9TechmP/mitg= X-Gm-Gg: Acq92OHegUsQ2Yk6Wwqq1XR3TASdTrS7LFn3xlVjM+/rZq3jaie4lCZPuq7odwu69ey sHHS3ADS/LjcYV5V8tUGlTAq95zRAF/Q8iY/1Vc7YVNtJQcmq0wPow9F61EBUQCfVpqMOGMVud5 dRnEQtekysYmVVdqNwXudRKQdna6+widTyB+QWjz+zy+uLqO4IHj9olZfNAX3GPCsLmfRIJ04kI QC8d8t8HZFwFeQMyCM= X-Received: by 2002:a05:6512:3e0f:b0:5aa:265f:acd0 with SMTP id 2adb3069b0e04-5aa7c12b64fmr2754974e87.39.1780570831246; Thu, 04 Jun 2026 04:00:31 -0700 (PDT) X-Received: by 2002:a05:6512:3e0f:b0:5aa:265f:acd0 with SMTP id 2adb3069b0e04-5aa7c12b64fmr2754959e87.39.1780570830711; Thu, 04 Jun 2026 04:00:30 -0700 (PDT) MIME-Version: 1.0 References: <20260604105150.1977905-1-anskuma@redhat.com> In-Reply-To: <20260604105150.1977905-1-anskuma@redhat.com> From: Anshu Kumari Date: Thu, 4 Jun 2026 16:30:18 +0530 X-Gm-Features: AVHnY4JR3qhom8XR5f4uD_C96CgH-AfE9ZrzkeyH-rdE3z_r5yvsb9TNZTwuUQI Message-ID: Subject: Re: [PATCH 0/3] [PATCH 0/3] dhcpv6: Add --dhcpv6-opt for custom DHCPv6 options To: passt-dev@passt.top, sbrivio@redhat.com, anskuma@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: ALozGI2PPRBwvL7zICTEVhz5xD1cWN9COdJpu7xE-0k_1780570831 X-Mimecast-Originator: redhat.com Content-Type: multipart/alternative; boundary="000000000000dcc38f06536b7335" Message-ID-Hash: NZJ4TH5TBFFBSBEQ7UWDWZJGOIHZDMYL X-Message-ID-Hash: NZJ4TH5TBFFBSBEQ7UWDWZJGOIHZDMYL X-MailFrom: anskuma@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: david@gibson.dropbear.id.au, jmaloy@redhat.com, lvivier@redhat.com X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --000000000000dcc38f06536b7335 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Following the current changes, future work will involve adding support for options 138 and 139. I have not included these in this patch series because the parsing for both requires significant code changes, which I believe would be too much to review at once. Regards, Anshu On Thu, Jun 4, 2026 at 4:22=E2=80=AFPM Anshu Kumari wr= ote: > 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. > > Patch 1 adds the CLI flag, storage, and basic man page entry. > Patch 2 adds the type table and binary parser for all supported types. > Patch 3 injects the parsed options into DHCPv6 reply packets. > > Anshu Kumari (3): > conf: Add --dhcpv6-opt command-line option > dhcpv6: Add option type table and value parser > dhcpv6: Inject custom options into DHCPv6 replies > > conf.c | 26 ++++- > dhcpv6.c | 295 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > dhcpv6.h | 1 + > passt.1 | 30 ++++++ > passt.h | 16 +++ > 5 files changed, 367 insertions(+), 1 deletion(-) > > -- > 2.54.0 > > --000000000000dcc38f06536b7335 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Following t= he current changes, future work will involve adding support for options 138= and 139. I have not included these in this patch series because the parsin= g for both requires significant code changes, which I believe would be too = much to review at once.

Regards,
Anshu

On Thu, Jun 4, 2026 at 4:22=E2=80=AFPM Anshu Kumari <anskuma@redhat.com> wrote:
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.

Patch 1 adds the CLI flag, storage, and basic man page entry.
Patch 2 adds the type table and binary parser for all supported types.
Patch 3 injects the parsed options into DHCPv6 reply packets.

Anshu Kumari (3):
=C2=A0 conf: Add --dhcpv6-opt command-line option
=C2=A0 dhcpv6: Add option type table and value parser
=C2=A0 dhcpv6: Inject custom options into DHCPv6 replies

=C2=A0conf.c=C2=A0 =C2=A0|=C2=A0 26 ++++-
=C2=A0dhcpv6.c | 295 ++++++++++++++++++++++++++++++++++++++++++++++++++++++= +
=C2=A0dhcpv6.h |=C2=A0 =C2=A01 +
=C2=A0passt.1=C2=A0 |=C2=A0 30 ++++++
=C2=A0passt.h=C2=A0 |=C2=A0 16 +++
=C2=A05 files changed, 367 insertions(+), 1 deletion(-)

--
2.54.0

--000000000000dcc38f06536b7335--