From: Florian Westphal <fw@strlen.de>
To: Fernando Fernandez Mancera <fmancera@suse.de>
Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org
Subject: Re: [PATCH 2/2 libnftnl v2] tunnel: add support to geneve options
Date: Wed, 28 May 2025 12:55:32 +0200 [thread overview]
Message-ID: <aDbrpG4vuB6A_n1z@strlen.de> (raw)
In-Reply-To: <20250527193420.9860-2-fmancera@suse.de>
Fernando Fernandez Mancera <fmancera@suse.de> wrote:
> + case NFTNL_OBJ_TUNNEL_GENEVE_OPTS:
> + geneve = malloc(sizeof(struct nftnl_obj_tunnel_geneve));
> + memcpy(geneve, data, data_len);
> +
> + if (!(e->flags & (1ULL << NFTNL_OBJ_TUNNEL_GENEVE_OPTS)))
> + INIT_LIST_HEAD(&tun->u.tun_geneve);
> +
> + list_add_tail(&geneve->list, &tun->u.tun_geneve);
> + break;
I missed this earlier. Do we have precedence for this?
AFAIK for all existing setters, if you do
nftnl_foo_set_data(obj, OPT_FOO, &d, len);
nftnl_foo_set_data(obj, OPT_FOO, &d2, len2);
Then d2 replaces d, it doesn't silently append/add to the
object.
next prev parent reply other threads:[~2025-05-28 10:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-27 19:34 [PATCH 1/2 libnftnl v2] src: use uint64_t for flags fields Fernando Fernandez Mancera
2025-05-27 19:34 ` [PATCH 2/2 libnftnl v2] tunnel: add support to geneve options Fernando Fernandez Mancera
2025-05-28 0:34 ` Florian Westphal
2025-05-28 9:27 ` Fernando Fernandez Mancera
2025-05-28 10:52 ` Florian Westphal
2025-06-10 0:28 ` Pablo Neira Ayuso
2025-06-10 6:01 ` Florian Westphal
2025-06-10 9:47 ` Pablo Neira Ayuso
2025-06-12 13:01 ` Fernando Fernandez Mancera
2025-06-12 19:18 ` Pablo Neira Ayuso
2025-05-28 10:55 ` Florian Westphal [this message]
2025-05-28 11:31 ` Fernando Fernandez Mancera
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=aDbrpG4vuB6A_n1z@strlen.de \
--to=fw@strlen.de \
--cc=coreteam@netfilter.org \
--cc=fmancera@suse.de \
--cc=netfilter-devel@vger.kernel.org \
/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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.