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=LH7dwl5N; 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 284FA5A0262 for ; Thu, 04 Jun 2026 12:52:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1780570322; 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: content-transfer-encoding:content-transfer-encoding; bh=YC11ZIJ5L0Qj8q2LHHpG09yzzWi9ONkbIGm/u3X9KRQ=; b=LH7dwl5Ndqt3XlHY48YS4H7gnXLqyEFR/+eYzV7a/J93YNxDr+veBCeyDkGtBFQM2ylA7X y/QU77iCB5z4pL22QD7oHBBawFkCuNdeLWL/lwk1RdSvvHfz8RCEUd33VsHpsapn3S1F/K 2HxgNo+AkiknvtqWSLWAKGWNBbmKEf0= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-586-6gIL8pMDP3m5nN6GphOcbw-1; Thu, 04 Jun 2026 06:51:59 -0400 X-MC-Unique: 6gIL8pMDP3m5nN6GphOcbw-1 X-Mimecast-MFC-AGG-ID: 6gIL8pMDP3m5nN6GphOcbw_1780570318 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id AF3CC180044D; Thu, 4 Jun 2026 10:51:57 +0000 (UTC) Received: from anskuma-thinkpadp1gen7.bengluru.csb (polycom_64167f9778de.blr.redhat.com [10.76.98.106]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B2B73175F; Thu, 4 Jun 2026 10:51:53 +0000 (UTC) From: Anshu Kumari To: passt-dev@passt.top, sbrivio@redhat.com, anskuma@redhat.com Subject: [PATCH 0/3] [PATCH 0/3] dhcpv6: Add --dhcpv6-opt for custom DHCPv6 options Date: Thu, 4 Jun 2026 16:21:47 +0530 Message-ID: <20260604105150.1977905-1-anskuma@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.6 on 10.30.177.95 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: YRsanBZ7QCAbhrdgT9RY0Kf0gbvUSEbphRZi2kpEl38_1780570318 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-ID-Hash: 7REIQSEE7ICWXSSRZW7CVA7X7CFYBWYD X-Message-ID-Hash: 7REIQSEE7ICWXSSRZW7CVA7X7CFYBWYD 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: 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