[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2df9df78-0383-c914-596e-1855c69fb170@gmail.com>
Date: Sat, 18 Jan 2020 14:24:45 -0700
From: David Ahern <dsahern@...il.com>
To: Sabrina Dubroca <sd@...asysnail.net>, netdev@...r.kernel.org
Cc: Stephen Hemminger <stephen@...workplumber.org>,
David Ahern <dsahern@...il.com>,
Herbert Xu <herbert@...dor.apana.org.au>
Subject: Re: [PATCH iproute2-next] ip: xfrm: add espintcp encapsulation
On 1/16/20 3:39 AM, Sabrina Dubroca wrote:
> diff --git a/ip/ipxfrm.c b/ip/ipxfrm.c
> index 32f560933a47..e310860b9f1f 100644
> --- a/ip/ipxfrm.c
> +++ b/ip/ipxfrm.c
> @@ -759,6 +759,9 @@ void xfrm_xfrma_print(struct rtattr *tb[], __u16 family,
> case 2:
> fprintf(fp, "espinudp ");
> break;
> + case 7:
> + fprintf(fp, "espintcp ");
> + break;
> default:
> fprintf(fp, "%u ", e->encap_type);
> break;
> @@ -1211,6 +1214,8 @@ int xfrm_encap_type_parse(__u16 *type, int *argcp, char ***argvp)
> *type = 1;
> else if (strcmp(*argv, "espinudp") == 0)
> *type = 2;
> + else if (strcmp(*argv, "espintcp") == 0)
> + *type = 7;
> else
> invarg("ENCAP-TYPE value is invalid", *argv);
>
are there enums / macros for the magic numbers?
Powered by blists - more mailing lists