freebsd-dev/share
Andrey V. Elsukov aee793eec9 Add GRE-in-UDP encapsulation support as defined in RFC8086.
This GRE-in-UDP encapsulation allows the UDP source port field to be
used as an entropy field for load-balancing of GRE traffic in transit
networks. Also most of multiqueue network cards are able distribute
incoming UDP datagrams to different NIC queues, while very little are
able do this for GRE packets.

When an administrator enables UDP encapsulation with command
`ifconfig gre0 udpencap`, the driver creates kernel socket, that binds
to tunnel source address and after udp_set_kernel_tunneling() starts
receiving of all UDP packets destined to 4754 port. Each kernel socket
maintains list of tunnels with different destination addresses. Thus
when several tunnels use the same source address, they all handled by
single socket.  The IP[V6]_BINDANY socket option is used to be able bind
socket to source address even if it is not yet available in the system.
This may happen on system boot, when gre(4) interface is created before
source address become available. The encapsulation and sending of packets
is done directly from gre(4) into ip[6]_output() without using sockets.

Reviewed by:	eugen
MFC after:	1 month
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D19921
2019-04-24 09:05:45 +00:00
..
colldef
ctypedef
dict
doc
dtrace
examples Update the spelling of my name 2019-04-22 17:52:46 +00:00
i18n
keys
man Add GRE-in-UDP encapsulation support as defined in RFC8086. 2019-04-24 09:05:45 +00:00
misc Add orphan mentee. 2019-04-17 14:20:55 +00:00
mk Fix up CXXSTD support originally added in r345708 2019-04-22 18:40:46 +00:00
monetdef
msgdef
numericdef
security
sendmail
skel
snmp
syscons
tabset
termcap termcap: Add an entry for kitty 2019-02-12 05:15:36 +00:00
tests
timedef
vt
zoneinfo Update the spelling of my name 2019-04-22 17:52:46 +00:00
Makefile
Makefile.inc