public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: Enrique Llorente Pastora <ellorent@redhat.com>
Cc: passt-dev@passt.top
Subject: Re: [PATCH v7] dhcp, dhcpv6: Add hostname and client fqdn ops
Date: Fri, 10 Jan 2025 09:59:55 +0100	[thread overview]
Message-ID: <20250110095955.11024478@elisabeth> (raw)
In-Reply-To: <CAHVoYmK6XMi7TSmmdjD=k9_OUzdm=s2CxjH8khQHm07N=Ow=Tg@mail.gmail.com>

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.

-- 
Stefano


  reply	other threads:[~2025-01-10  9:00 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 [this message]
2025-01-10  9:44           ` Enrique Llorente Pastora

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=20250110095955.11024478@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=ellorent@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).