From: Enrique Llorente Pastora <ellorent@redhat.com>
To: Stefano Brivio <sbrivio@redhat.com>
Cc: passt-dev@passt.top
Subject: Re: [PATCH v7] dhcp, dhcpv6: Add hostname and client fqdn ops
Date: Fri, 10 Jan 2025 10:44:24 +0100 [thread overview]
Message-ID: <CAHVoYmKAoRcmro6wZDUrizXUURDF15Lw+mQz1PEDDV2S9PpyYA@mail.gmail.com> (raw)
In-Reply-To: <20250110095955.11024478@elisabeth>
On Fri, Jan 10, 2025 at 10:00 AM Stefano Brivio <sbrivio@redhat.com> wrote:
>
> On Fri, 10 Jan 2025 09:39:09 +0100
> Enrique Llorente Pastora <ellorent@redhat.com> wrote:
>
> > On Thu, Jan 9, 2025 at 2:34 PM Stefano Brivio <sbrivio@redhat.com> wrote:
> > >
> > > On Thu, 9 Jan 2025 13:57:38 +0100
> > > Enrique Llorente Pastora <ellorent@redhat.com> wrote:
> > >
> > > > Also I have to move the list buffer or I will be storing it at the
> > > > first element.
> > > > encoded_name_len = encode_domain_name(srch->list + srch->hdr.l,
> > > > NS_MAXDNAME,
> > > > c->dns_search[i].n,
> > > > name_len);
> > >
> > > Oh, right. I didn't test this. Can't you just follow along where you
> > > are with 'offset'? I'm not sure, I didn't look into it.
> >
> > I cannot use offset since it's initialize with + header
> >
> > offset += sizeof(struct opt_hdr);
>
> Right, but doesn't that need to point to where we want to write anyway?
> That will be after the header, so it's good that it's past the header.
> Again, I didn't try this.
>
Ahh right we can use offset directly
encode_domain_name(offset, c->dns_search[i].n);
> --
> Stefano
>
--
Quique Llorente
CNV networking Senior Software Engineer
Red Hat EMEA
ellorent@redhat.com
@RedHat Red Hat Red Hat
prev parent reply other threads:[~2025-01-10 9:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-08 14:58 [PATCH v7] dhcp, dhcpv6: Add hostname and client fqdn ops Enrique Llorente
2025-01-09 8:16 ` Stefano Brivio
2025-01-09 12:57 ` Enrique Llorente Pastora
2025-01-09 13:33 ` Stefano Brivio
2025-01-10 8:39 ` Enrique Llorente Pastora
2025-01-10 8:59 ` Stefano Brivio
2025-01-10 9:44 ` Enrique Llorente Pastora [this message]
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=CAHVoYmKAoRcmro6wZDUrizXUURDF15Lw+mQz1PEDDV2S9PpyYA@mail.gmail.com \
--to=ellorent@redhat.com \
--cc=passt-dev@passt.top \
--cc=sbrivio@redhat.com \
/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).