ipvs: support ipv4 in ipv6 and ipv6 in ipv4 tunnel forwarding
authorAlex Gartrell <agartrell@fb.com>
Tue, 9 Sep 2014 23:40:28 +0000 (16:40 -0700)
committerSimon Horman <horms@verge.net.au>
Tue, 16 Sep 2014 00:03:37 +0000 (09:03 +0900)
commit8052ba292559f907ea2ad4c827d83c195046dfe1
tree00c88663346c7b8c91eed54cf2af8fe5b7e9eb61
parentc63e4de2be5e1d253adce16dbba57ed42868bc22
ipvs: support ipv4 in ipv6 and ipv6 in ipv4 tunnel forwarding

Pull the common logic for preparing an skb to prepend the header into a
single function and then set fields such that they can be used in either
case (generalize tos and tclass to dscp, hop_limit and ttl to ttl, etc)

Signed-off-by: Alex Gartrell <agartrell@fb.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_conn.c
net/netfilter/ipvs/ip_vs_xmit.c