From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=fail (p=quarantine dis=none) header.from=redhat.com Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id EE7AE5A0625 for ; Thu, 29 Oct 2026 19:13:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1793297590; 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=vLDtXJW/jD73ZhBPpndsG3mZl0bfPRUnR22rRV4knOw=; b=BUCu7mpdPGLFT/5h7B/Ozq4Eae+RopiaxqmPvZoqU9AAl/zjca8b9nQKHFqvy1soXJ2hm3 ClNsk6C7D3FH8N+aAyZvPgo0lRuQUdQxnI44vCklns5bp97xA6ue+3pcQuZJ8eiUFAettp eIBev1GFiQLm0dEDgJ+EVHz6GYdfINA= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-451-6Kvurf1LMZenFTqRz2W2gg-1; Thu, 29 Oct 2026 14:13:09 -0400 X-MC-Unique: 6Kvurf1LMZenFTqRz2W2gg-1 X-Mimecast-MFC-AGG-ID: 6Kvurf1LMZenFTqRz2W2gg_1793297588 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2EA08195423C for ; Thu, 29 Oct 2026 18:13:08 +0000 (UTC) Received: from anskuma-thinkpadp1gen7.bengluru.csb (unknown [10.74.80.10]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EAD2618005B7; Thu, 29 Oct 2026 18:13:05 +0000 (UTC) From: Anshu Kumari To: sbrivio@redhat.com, passt-dev@passt.top Subject: [PATCH v5 0/2] [PATCH 0/2] dhcpv6: Add --dhcpv6-opt for custom DHCPv6 options Date: Thu, 29 Oct 2026 23:43:00 +0530 Message-ID: <20261029181303.714616-1-anskuma@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 7kcncjfVLBX52JcIoV28ECdrhO73p0KFFY2UapYiR6k_1793297588 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-ID-Hash: A524XHI6UTTHWWGTNPANXPR2SQWDJPJU X-Message-ID-Hash: A524XHI6UTTHWWGTNPANXPR2SQWDJPJU 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: lvivier@redhat.com, anskuma@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 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 | 27 +++- dhcpv6.c | 413 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- dhcpv6.h | 6 +- passt.1 | 31 +++++ tap.c | 2 +- 5 files changed, 466 insertions(+), 13 deletions(-) -- 2.55.0