History log of /external/iproute2/ip/link_gre.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
926b39e1feffdacff52fe8b7eafe0ba3b8c9ff59 18-Dec-2015 Paolo Abeni <pabeni@redhat.com> gre: add support for collect metadata flag

This patch add support for IFLA_GRE_COLLECT_METADATA via the
'external' keyword to the gre link.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
/external/iproute2/ip/link_gre.c
c079e121a73af5eb49e003b13607e8a690331df6 27-May-2015 Stephen Hemminger <shemming@brocade.com> libnetlink: add size argument to rtnl_talk

There have been several instances where response from kernel
has overrun the stack buffer from the caller. Avoid future problems
by passing a size argument.

Also drop the unused peer and group arguments to rtnl_talk.
/external/iproute2/ip/link_gre.c
bde5baa5476cd8d7d33afc42170dc984f3717e14 21-May-2015 Jetchko Jekov <jetchko.jekov@nokia.com> gre: raising the size of the buffer holding nl messages.

Now it matches the size for the answer defined in rtnl_talk()
and prevents stack corruption with answer > 1024 bytes.
/external/iproute2/ip/link_gre.c
858dbb208e3934525674252a6b6cf7d36a9de191 29-Jan-2015 Tom Herbert <therbert@google.com> ip link: Add support for remote checksum offload to IP tunnels

This patch adds support to remote checksum checksum offload
confinguration for IPIP, SIT, and GRE tunnels. This patch
adds a [no]encap-remcsum to ip link command which applicable
when configured tunnels that use GUE.

http://tools.ietf.org/html/draft-herbert-remotecsumoffload-00

Example:

ip link add name tun1 type gre remote 192.168.1.1 local 192.168.1.2 \
ttl 225 encap fou encap-sport auto encap-dport 7777 encap-csum \
encap-remcsum

This would create an GRE tunnel in GUE encapsulation where the source
port is automatically selected (based on hash of inner packet),
checksums in the encapsulating UDP header are enabled (needed.for
remote checksum offload), and remote checksum ffload is configured to
be used on the tunnel (affects TX side).

Signed-off-by: Tom Herbert <therbert@google.com>
/external/iproute2/ip/link_gre.c
80c24b097e2f943676b20c0b72a5c95da2d0285f 05-Nov-2014 Tom Herbert <therbert@google.com> ip link gre: Add support to configure FOU and GUE

This patch adds support to configure foo-over-udp (FOU) and Generic
UDP Encapsulation for GRE tunnels. This configuration allows selection
of FOU or GUE for the tunnel, specification of the source and
destination ports for UDP tunnel, and enabling TX checksum. This
configuration only affects the transmit side of a tunnel.

Example:

ip link add name tun1 type gre remote 192.168.1.1 local 192.168.1.2 \
ttl 225 encap fou encap-sport auto encap-dport 7777 encap-csum

This would create an GRE tunnel in GUE encapsulation where the source
port is automatically selected (based on hash of inner packet) and
checksums in the encapsulating UDP header are enabled.

Signed-off-by: Tom Herbert <therbert@google.com>
/external/iproute2/ip/link_gre.c
561e650eff679296d3f4c12657721ae769cbc187 30-Sep-2014 vadimk <vadim4j@gmail.com> ip link: Shortify printing the usage of link type

Allow to print particular link type usage by:

ip link help [TYPE]

Currently to print usage for some link type it is needed
to use the following way:

ip link { add | del | set } type TYPE help

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
/external/iproute2/ip/link_gre.c
0cb6bb51b4eb9bd08e152342b95dcae13287dafd 04-Jun-2014 Cong Wang <xiyou.wangcong@gmail.com> do not exit silently when link is not found

When we create a tunnel on top of a link and the link specified
in cmdline doesn't exist, an error message should be shown.

Cc: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
/external/iproute2/ip/link_gre.c
0612519e011812276ade512d4a7f8113497f64ed 17-Feb-2014 Stephen Hemminger <stephen@networkplumber.org> Remove trailing whitespace
/external/iproute2/ip/link_gre.c
14645ec2310ee7cf6d2f3d5035ac37ec09674e2c 08-Feb-2013 Kees van Reeuwijk <reeuwijk@few.vu.nl> iproute2: improved error messages

This patch improves many error messages as follows:
- For incorrect parameters, show the value of the offending parameter, rather than just say that it is incorrect
- Rephrased messages for clarity
- Rephrased to more `mainstream' english

Signed-off-by: Kees van Reeuwijk <reeuwijk@few.vu.nl>
/external/iproute2/ip/link_gre.c
ff24746cca1ef0c92d46614158e6672acd6b63d3 10-Apr-2012 Stephen Hemminger <shemminger@vyatta.com> Convert to use rta_getattr_ functions

User new functions (inspired by libmnl) to do type safe access
of routeing attributes
/external/iproute2/ip/link_gre.c
718165534d0c57ea23c536f57affe7f04a33199a 20-Mar-2012 Stephen Hemminger <shemminger@vyatta.com> gre: allow 0 as a legal key value

There is nothing in the standard that says 0 can't be used as a key.
It makes sense to allow it. Also fix typo where ikey was printed for
when printing okey.
/external/iproute2/ip/link_gre.c
cd70f3f522e04b4d2fa80ae10292379bf223a53b 28-Dec-2011 Stephen Hemminger <shemminger@vyatta.com> libnetlink: remove unused junk callback

Both rtnl_talk and rtnl_dump had a callback for handling portions
of netlink message that do not match the correct pid or seq.
But this callback was never used by any part of iproute2 so remove
it.
/external/iproute2/ip/link_gre.c
ea71beacacb9ebf756bbc250c71df59ec2f46243 28-Nov-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> Use standard routines for interface name to index etc

Use the available libraries for mapping from interface index to name
or type. This should speed up display with lots of interfaces
/external/iproute2/ip/link_gre.c
1957a322c9932e1a1d2ca1fd37ce4b335ceb7113 24-Mar-2009 Stephen Hemminger <stephen.hemminger@vyatta.com> Fix headers needed for gre

Need to get right headers or build breaks.
/external/iproute2/ip/link_gre.c
72c771b20e38eaabb7699625fcdc144a51771f9c 07-Jan-2009 Herbert Xu <herbert@gondor.apana.org.au> Update version of IP gre

This patch adds support for configuring GRE tunnels using the
new rtnl_link interface. This only works on kernels that have
the new GRE configuration interface.

This is accessed through the "ip link" command. The previous
tunnel configuration interface "ip tunnel" remains as it is
and should be retained for compatibility with old kernels.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
/external/iproute2/ip/link_gre.c
237d9e82c56918a1c972e6f30dd3cf1cfb957412 09-Oct-2008 Herbert Xu <herbert@gondor.apana.org.au> ip: gre: Add GRE configuration support through rtnl_link

This patch adds support for configuring GRE tunnels using the
new rtnl_link interface. This only works on kernels that have
the new GRE configuration interface.

This is accessed through the "ip link" command. The previous
tunnel configuration interface "ip tunnel" remains as it is
and should be retained for compatibility with old kernels.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
/external/iproute2/ip/link_gre.c