From: David Miller <davem@davemloft.net>
To: arno@natisbad.org
Cc: netdev@vger.kernel.org, shinta@sfc.wide.ad.jp,
nakam@linux-ipv6.org, yoshfuji@linux-ipv6.org
Subject: Re: [PATCH] XFRM: MIGRATE enhancements
Date: Thu, 11 Sep 2008 03:47:41 -0700 (PDT) [thread overview]
Message-ID: <20080911.034741.263645111.davem@davemloft.net> (raw)
In-Reply-To: <8763puwrm8.fsf@natisbad.org>
From: arno@natisbad.org (Arnaud Ebalard)
Date: Thu, 21 Aug 2008 13:10:39 +0200
> XFRM: MIGRATE enhancements (draft-ebalard-mext-pfkey-enhanced-migrate)
>
> Provides implementation of the enhancements of XFRM/PF_KEY MIGRATE mechanism
> specified in draft-ebalard-mext-pfkey-enhanced-migrate-00. Defines associated
> PF_KEY SADB_X_EXT_KMADDRESS extension XFMR/netlink XFRMA_KMADDRESS attribute.
>
> Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
I'm mostly ok with this, but:
> @@ -1745,18 +1753,19 @@ static int xfrm_do_migrate(struct sk_buff *skb, struct nlmsghdr *nlh,
> {
> struct xfrm_userpolicy_id *pi = nlmsg_data(nlh);
> struct xfrm_migrate m[XFRM_MAX_DEPTH];
> + struct xfrm_kmaddress km;
> u8 type;
> int err;
> int n = 0;
>
> - if (attrs[XFRMA_MIGRATE] == NULL)
> + if (attrs[XFRMA_MIGRATE] == NULL || attrs[XFRMA_KMADDRESS] == NULL)
> return -EINVAL;
This part I don't like.
This is a new restriction and will break old binaries.
Can't we cook up some kind of default kmaddress object it none is
specified by the user? Alternatively, if we are in an environment
where the tools don't understand this facility, they won't care
what the kmaddress even is.
Generally speaking, when extending existing facilities with new
attributes, you cannot make their existence suddenly a requirement.
That breaks stuff.
next prev parent reply other threads:[~2008-09-11 10:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-21 11:10 [PATCH] XFRM: MIGRATE enhancements Arnaud Ebalard
2008-09-11 10:47 ` David Miller [this message]
2008-09-17 16:03 ` Arnaud Ebalard
2008-09-23 10:35 ` Arnaud Ebalard
-- strict thread matches above, loose matches on Subject: below --
2008-10-02 7:42 Arnaud Ebalard
2008-10-05 20:40 ` David Miller
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=20080911.034741.263645111.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=arno@natisbad.org \
--cc=nakam@linux-ipv6.org \
--cc=netdev@vger.kernel.org \
--cc=shinta@sfc.wide.ad.jp \
--cc=yoshfuji@linux-ipv6.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 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 NNTP newsgroup(s).