From: "Jiri Klimes" <klimes@centrum.cz>
To: <netdev@vger.kernel.org>
Subject: Re: 'ip' command should allow creation of an IPsec SA with 'proto any' and specified sport and dport as selectors
Date: Fri, 24 Apr 2009 15:15:18 +0200 [thread overview]
Message-ID: <200904241515.6341@centrum.cz> (raw)
In-Reply-To: <20090424.044938.57356604.davem@davemloft.net>
[-- Attachment #1: Type: text/plain, Size: 495 bytes --]
______________________________________________________________
> Od: davem@davemloft.net
> Komu: klimes@centrum.cz
> CC: netdev@vger.kernel.org
> Datum: 24.04.2009 13:49
> Předmět: Re: 'ip' command should allow creation of an IPsec SA with 'proto any' and specified sport and dport as selectors
>
>From: "Jiri Klimes" <klimes@centrum.cz>
>Date: Fri, 24 Apr 2009 13:11:34 +0200
>
>> please find a patch in the attachment.
>
>There is no attachment.
>
oops, sorry.
Forgot the most important.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ip_sa.patch --]
[-- Type: text/x-patch; name="ip_sa.patch", Size: 487 bytes --]
--- a/ip/ipxfrm.c
+++ b/ip/ipxfrm.c
@@ -1156,6 +1156,7 @@ static int xfrm_selector_upspec_parse(struct xfrm_selector *sel,
case IPPROTO_UDP:
case IPPROTO_SCTP:
case IPPROTO_DCCP:
+ case IPPROTO_IP: /* to allow shared SA for different protocols */
break;
default:
fprintf(stderr, "\"sport\" and \"dport\" are invalid with proto=%s\n", strxf_proto(sel->proto));
prev parent reply other threads:[~2009-04-24 13:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200904241303.8959@centrum.cz>
[not found] ` <200904241304.13486@centrum.cz>
[not found] ` <200904241305.11036@centrum.cz>
[not found] ` <200904241306.11421@centrum.cz>
[not found] ` <200904241307.10948@centrum.cz>
[not found] ` <200904241308.31592@centrum.cz>
[not found] ` <200904241309.13171@centrum.cz>
[not found] ` <200904241310.10823@centrum.cz>
2009-04-24 11:11 ` 'ip' command should allow creation of an IPsec SA with 'proto any' and specified sport and dport as selectors Jiri Klimes
2009-04-24 11:49 ` David Miller
2009-04-24 13:15 ` Jiri Klimes [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=200904241515.6341@centrum.cz \
--to=klimes@centrum.cz \
--cc=netdev@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 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).