From: Stefano Brivio <sbrivio@redhat.com>
To: Anshu Kumari <anskuma@redhat.com>
Cc: passt-dev@passt.top, jmaloy@redhat.com,
david@gibson.dropbear.id.au, lvivier@redhat.com
Subject: Re: [PATCH v4 3/4] dhcp: Add --dhcp-opt with option table and value parser
Date: Wed, 01 Jul 2026 19:00:30 +0200 (CEST) [thread overview]
Message-ID: <20260701190029.3a80c95a@elisabeth> (raw)
In-Reply-To: <20260617132243.1499556-4-anskuma@redhat.com>
On Wed, 17 Jun 2026 18:52:37 +0530
Anshu Kumari <anskuma@redhat.com> wrote:
> [...]
>
> @@ -182,6 +182,8 @@ struct ip6_ctx {
> * @dns_search: DNS search list
> * @hostname: Guest hostname
> * @fqdn: Guest FQDN
> + * @dhcp_opts: User-specified DHCP options from --dhcp-opt
> + * @dhcp_opts.str: String value from command line
> * @ifi6: Template interface for IPv6, -1: none, 0: IPv6 disabled
> * @ip6: IPv6 configuration
> * @pasta_ifn: Name of namespace interface for pasta
> @@ -264,6 +266,10 @@ struct ctx {
> char hostname[PASST_MAXDNAME];
> char fqdn[PASST_MAXDNAME];
>
> + struct {
> + char str[255];
> + } dhcp_opts[256];
This just occurred to me after reviewing the DHCPv6 equivalent: as you
only support options in the table, you could use the count of items in
that table, instead of 256.
See my review of v2 1/2 of the DHCPv6 series for one way to do that.
--
Stefano
next prev parent reply other threads:[~2026-07-01 17:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-17 13:22 [PATCH v4 0/4] Add --dhcp-boot and --dhcp-opt options Anshu Kumari
2026-06-17 13:22 ` [PATCH v4 1/4] dhcp: Refactor fill_one() to operate on a generic buffer Anshu Kumari
2026-06-19 3:26 ` David Gibson
2026-07-01 7:51 ` Stefano Brivio
2026-06-17 13:22 ` [PATCH v4 2/4] dhcp: Add option overload Anshu Kumari
2026-06-19 3:39 ` David Gibson
2026-06-19 7:55 ` Anshu Kumari
2026-06-22 2:43 ` David Gibson
2026-07-01 7:51 ` Stefano Brivio
2026-07-01 17:00 ` Stefano Brivio
2026-06-17 13:22 ` [PATCH v4 3/4] dhcp: Add --dhcp-opt with option table and value parser Anshu Kumari
2026-06-19 3:52 ` David Gibson
2026-06-19 7:29 ` Anshu Kumari
2026-06-22 2:42 ` David Gibson
2026-07-01 7:51 ` Stefano Brivio
2026-07-01 17:00 ` Stefano Brivio [this message]
2026-06-17 13:22 ` [PATCH v4 4/4] conf: Add --dhcp-boot command-line option Anshu Kumari
2026-06-19 3:53 ` 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=20260701190029.3a80c95a@elisabeth \
--to=sbrivio@redhat.com \
--cc=anskuma@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=jmaloy@redhat.com \
--cc=lvivier@redhat.com \
--cc=passt-dev@passt.top \
/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).