moby / ipvs

IPVS networking for containers (package derived from moby/libnetwork)
Apache License 2.0
97 stars 37 forks source link

Support for destination tunneling and propagate address family when filling the destination #22

Closed dikshant closed 3 years ago

dikshant commented 3 years ago

This PR adds support for configuring tunneling (IPIP, GUE, GRE), port and any respective flags for an IPVS destination.

This also introduces a change that specifies the address family when destination is filled. In our development and testing we noticed that adding a backend to IPVS through the library where the backend has an IPv6 address, resulted in the first 32 bits of that IPv6 address getting interpreted as an IPv4 address. This was fixed by specifying ipvsDestAttrAddressFamily in fillDestination.