From: Sabrina Dubroca <sd@queasysnail.net>
To: David Ahern <dsahern@gmail.com>
Cc: netdev@vger.kernel.org,
Stephen Hemminger <stephen@networkplumber.org>,
Herbert Xu <herbert@gondor.apana.org.au>
Subject: Re: [PATCH iproute2-next v2] ip: xfrm: add espintcp encapsulation
Date: Sun, 19 Jan 2020 16:44:01 +0100 [thread overview]
Message-ID: <20200119154401.GA194807@bistromath.localdomain> (raw)
In-Reply-To: <b7f74a02-ff87-1cd5-c3cb-7b620bd11fe2@gmail.com>
2020-01-19, 08:31:32 -0700, David Ahern wrote:
> On 1/19/20 3:32 AM, Sabrina Dubroca wrote:
> > diff --git a/include/uapi/linux/udp.h b/include/uapi/linux/udp.h
> > new file mode 100644
> > index 000000000000..2d1f561b89d2
> > --- /dev/null
> > +++ b/include/uapi/linux/udp.h
> > @@ -0,0 +1,47 @@
> > +/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
> > +/*
> > + * INET An implementation of the TCP/IP protocol suite for the LINUX
> > + * operating system. INET is implemented using the BSD Socket
> > + * interface as the means of communication with the user level.
> > + *
> > + * Definitions for the UDP protocol.
> > + *
> > + * Version: @(#)udp.h 1.0.2 04/28/93
> > + *
> > + * Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
> > + *
> > + * This program is free software; you can redistribute it and/or
> > + * modify it under the terms of the GNU General Public License
> > + * as published by the Free Software Foundation; either version
> > + * 2 of the License, or (at your option) any later version.
> > + */
> > +#ifndef _UDP_H
> > +#define _UDP_H
> > +
> > +#include <linux/types.h>
> > +
> > +struct udphdr {
> > + __be16 source;
> > + __be16 dest;
> > + __be16 len;
> > + __sum16 check;
> > +};
> > +
> > +/* UDP socket options */
> > +#define UDP_CORK 1 /* Never send partially complete segments */
> > +#define UDP_ENCAP 100 /* Set the socket to accept encapsulated packets */
> > +#define UDP_NO_CHECK6_TX 101 /* Disable sending checksum for UDP6X */
> > +#define UDP_NO_CHECK6_RX 102 /* Disable accpeting checksum for UDP6 */
> > +#define UDP_SEGMENT 103 /* Set GSO segmentation size */
> > +#define UDP_GRO 104 /* This socket can receive UDP GRO packets */
> > +
> > +/* UDP encapsulation types */
> > +#define UDP_ENCAP_ESPINUDP_NON_IKE 1 /* draft-ietf-ipsec-nat-t-ike-00/01 */
> > +#define UDP_ENCAP_ESPINUDP 2 /* draft-ietf-ipsec-udp-encaps-06 */
> > +#define UDP_ENCAP_L2TPINUDP 3 /* rfc2661 */
> > +#define UDP_ENCAP_GTP0 4 /* GSM TS 09.60 */
> > +#define UDP_ENCAP_GTP1U 5 /* 3GPP TS 29.060 */
> > +#define UDP_ENCAP_RXRPC 6
> > +#define TCP_ENCAP_ESPINTCP 7 /* Yikes, this is really xfrm encap types. */
> > +
> > +#endif /* _UDP_H */
>
> Hi Sabrina:
>
> I am confused about this header file. It is not from the kernel's uapi
> directory, so the kernel does not care about the values and where did
> you get the file?
Uh? It's right there:
https://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next.git/tree/include/uapi/linux/udp.h
--
Sabrina
next prev parent reply other threads:[~2020-01-19 15:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-19 10:32 [PATCH iproute2-next v2] ip: xfrm: add espintcp encapsulation Sabrina Dubroca
2020-01-19 15:31 ` David Ahern
2020-01-19 15:44 ` Sabrina Dubroca [this message]
2020-01-19 16:05 ` David Ahern
2020-01-19 16:17 ` Sabrina Dubroca
2020-01-22 3:44 ` David Ahern
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=20200119154401.GA194807@bistromath.localdomain \
--to=sd@queasysnail.net \
--cc=dsahern@gmail.com \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.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