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=g4cMD8xC; dkim-atps=neutral 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 D99C55A0265 for ; Mon, 18 May 2026 15:20:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1779110412; 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=KT2vD/kbLGMS81wMAeP9QT7idVr9+RrZkYeMzqqohSs=; b=g4cMD8xCaODlPI8YL202KIm4CH2bD1S4ZgikjF3efl7SvCKnOTQJeXx9vFXOmYG6UtZdP2 xkRsOYYavLhFpzdhTTxNNEStBlqGQDNdrySEvpYZeOma+dJUYkH+nbxGGLrI2CCUKezXs7 n43iwapgR2RP/O+45K0iPbHK5a1SEvY= Received: from mx-prod-mc-05.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-669-bJDd_e1KMBCgXm9zMJK4GA-1; Mon, 18 May 2026 09:20:09 -0400 X-MC-Unique: bJDd_e1KMBCgXm9zMJK4GA-1 X-Mimecast-MFC-AGG-ID: bJDd_e1KMBCgXm9zMJK4GA_1779110408 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5C65D195609F; Mon, 18 May 2026 13:20:08 +0000 (UTC) Received: from anskuma-thinkpadp1gen7.bengluru.csb (unknown [10.74.80.120]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5ECB418004A3; Mon, 18 May 2026 13:20:04 +0000 (UTC) From: Anshu Kumari To: anskuma@redhat.com, sbrivio@redhat.com, passt-dev@passt.top Subject: [PATCH 0/6] Add --dhcp-boot and --dhcp-opt options Date: Mon, 18 May 2026 18:49:56 +0530 Message-ID: <20260518132002.418296-1-anskuma@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 2a4c7J3AMKAusxZ5JDGqKrXtchAqhjiAvLINkXogI_M_1779110408 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-ID-Hash: 6FPCPK6EL6QC2OGDURF6EJQDZY6ICZ3G X-Message-ID-Hash: 6FPCPK6EL6QC2OGDURF6EJQDZY6ICZ3G 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, jmaloy@redhat.com, david@gibson.dropbear.id.au 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 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. *** BLURB HERE *** Anshu Kumari (6): conf: Add --dhcp-opt command-line option conf: Add --dhcp-boot command-line option dhcp: Add option type table and value parser dhcp: Refactor fill_one() to operate on a generic buffer dhcp: Add option overload doc: Add --dhcp-boot and --dhcp-opt to man page conf.c | 54 ++++++++- dhcp.c | 336 ++++++++++++++++++++++++++++++++++++++++++++++++++++---- dhcp.h | 15 +++ passt.1 | 44 ++++++++ passt.h | 11 ++ 5 files changed, 438 insertions(+), 22 deletions(-) -- 2.54.0