]> git.baikalelectronics.ru Git - kernel.git/commit
fou: Support IPv6 in fou
authorTom Herbert <tom@herbertland.com>
Wed, 18 May 2016 16:06:16 +0000 (09:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 May 2016 22:03:16 +0000 (18:03 -0400)
commit4b23a376ba228fa42036a52520973aaf975289cc
tree57a7f54ecae08c2f4ea6c630bce5f9160c89b225
parent60005f1c0fe16319da722575c5132c1dabbf0a62
fou: Support IPv6 in fou

This patch adds receive path support for IPv6 with fou.

- Add address family to fou structure for open sockets. This supports
  AF_INET and AF_INET6. Lookups for fou ports are performed on both the
  port number and family.
- In fou and gue receive adjust tot_len in IPv4 header or payload_len
  based on address family.
- Allow AF_INET6 in FOU_ATTR_AF netlink attribute.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fou.c