IPVS: Add general v4/v6 helper functions / data structures
authorJulius Volz <juliusv@google.com>
Tue, 2 Sep 2008 13:55:34 +0000 (15:55 +0200)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Sep 2008 01:17:03 +0000 (11:17 +1000)
commit64aae3cb9fd22f33e491c4730d363eb2229ef910
tree71a9ac96d585d4998e4df7c33aa515764d5ad5e1
parente7ade46a53055c19a01c8becbe7807f9075d6fee
IPVS: Add general v4/v6 helper functions / data structures

Add a struct ip_vs_iphdr for easier handling of common v4 and v6 header
fields in the same code path. ip_vs_fill_iphdr() helps to fill this struct
from an IPv4 or IPv6 header. Add further helper functions for copying and
comparing addresses.

Signed-off-by: Julius Volz <juliusv@google.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
include/net/ip_vs.h