]> git.proxmox.com Git - mirror_iproute2.git/commit
ip fou: Support binding FOU ports
authorKristian Evensen <kristian.evensen@gmail.com>
Mon, 22 Apr 2019 15:27:41 +0000 (17:27 +0200)
committerDavid Ahern <dsahern@gmail.com>
Mon, 22 Apr 2019 18:42:54 +0000 (11:42 -0700)
commit112112b8eb11d2bb041aca270f5f4456d40e24fb
tree07a6bc7d6e3b614a4359a084b07ca5f76ccd55a7
parent90306a14402b6a082ab0aac0f5016b2258201220
ip fou: Support binding FOU ports

This patch adds support for binding FOU ports using iproute2.
Kernel-support was added in 1713cb37bf67 ("fou: Support binding FoU
socket").

The parse function now handles new arguments for setting the
binding-related attributes, while the print function writes the new
attributes if they are set. Also, the man page has been updated.

v2->v3:
* Remove redundant ll_init_map()-calls (thanks David Ahern).

v1->v2 (all changes suggested by David Ahern):
* Fix reverse Christmas tree ordering.
* Remove redundant peer_port_set-variable, it is enough to check
peer_port.
* Add proper error handling of invalid local/peer addresses.
* Use interface name and not index.
* Remove updating fou-header file, it is already done.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/ipfou.c
man/man8/ip-fou.8