diff options
author | Julian Anastasov <ja@ssi.bg> | 2010-10-17 16:46:17 +0300 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2010-10-21 11:04:43 +0200 |
commit | 0d79641a96d612aaa6d57a4d4f521d7ed9c9ccdd (patch) | |
tree | 9783497ace4f8ff8eeac24524ecb93012166c60d /net/netfilter/ipvs/ip_vs_proto_udp.c | |
parent | 3233759be7eeca9998c514b8f49e8cf2b85e64d3 (diff) | |
download | op-kernel-dev-0d79641a96d612aaa6d57a4d4f521d7ed9c9ccdd.zip op-kernel-dev-0d79641a96d612aaa6d57a4d4f521d7ed9c9ccdd.tar.gz |
ipvs: provide address family for debugging
As skb->protocol is not valid in LOCAL_OUT add
parameter for address family in packet debugging functions.
Even if ports are not present in AH and ESP change them to
use ip_vs_tcpudp_debug_packet to show at least valid addresses
as before. This patch removes the last user of skb->protocol
in IPVS.
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net/netfilter/ipvs/ip_vs_proto_udp.c')
-rw-r--r-- | net/netfilter/ipvs/ip_vs_proto_udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/ipvs/ip_vs_proto_udp.c b/net/netfilter/ipvs/ip_vs_proto_udp.c index 5d21f08..9d106a0 100644 --- a/net/netfilter/ipvs/ip_vs_proto_udp.c +++ b/net/netfilter/ipvs/ip_vs_proto_udp.c @@ -314,7 +314,7 @@ udp_csum_check(int af, struct sk_buff *skb, struct ip_vs_protocol *pp) skb->len - udphoff, ipv6_hdr(skb)->nexthdr, skb->csum)) { - IP_VS_DBG_RL_PKT(0, pp, skb, 0, + IP_VS_DBG_RL_PKT(0, af, pp, skb, 0, "Failed checksum for"); return 0; } @@ -325,7 +325,7 @@ udp_csum_check(int af, struct sk_buff *skb, struct ip_vs_protocol *pp) skb->len - udphoff, ip_hdr(skb)->protocol, skb->csum)) { - IP_VS_DBG_RL_PKT(0, pp, skb, 0, + IP_VS_DBG_RL_PKT(0, af, pp, skb, 0, "Failed checksum for"); return 0; } |