History

ipvs: Add destination address family to netlink interface

This is necessary to support heterogeneous pools. For example, if you have an ipv6 addressed network, you'll want to be able to forward ipv4 traffic into it. This patch enforces that destination address family is the same as service family, as none of the forwarding mechanisms support anything else. For the old setsockopt mechanism, we simply set the dest address family to AF_INET as we do with the service.

Alex Gartrell committed 12 years ago

Commit 6cff3391 parent 616a9be3 files · +44 −7Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/ip_vs.h+3−0
@@ -384,6 +384,9 @@ enum { · 383 unmodified lines
384 IPVS_DEST_ATTR_PERSIST_CONNS, /* persistent connections */384 IPVS_DEST_ATTR_PERSIST_CONNS, /* persistent connections */
385 385
386 IPVS_DEST_ATTR_STATS, /* nested attribute for dest stats */386 IPVS_DEST_ATTR_STATS, /* nested attribute for dest stats */
387
388 IPVS_DEST_ATTR_ADDR_FAMILY, /* Address family of address */
389
387 __IPVS_DEST_ATTR_MAX,390 __IPVS_DEST_ATTR_MAX,
388};391};
389 392