git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
net
/
ipv4
/
ipvs
/
ip_vs_proto_ah.c
diff --git
a/net/ipv4/ipvs/ip_vs_proto_ah.c
b/net/ipv4/ipvs/ip_vs_proto_ah.c
index
ffea536
..
453e94a
100644
(file)
--- a/
net/ipv4/ipvs/ip_vs_proto_ah.c
+++ b/
net/ipv4/ipvs/ip_vs_proto_ah.c
@@
-129,14
+129,15
@@
ah_debug_packet(struct ip_vs_protocol *pp, const struct sk_buff *skb,
int offset, const char *msg)
{
char buf[256];
int offset, const char *msg)
{
char buf[256];
- struct iphdr
ip
h;
+ struct iphdr
_iph, *i
h;
- if (skb_copy_bits(skb, offset, &iph, sizeof(iph)) < 0)
+ ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph);
+ if (ih == NULL)
sprintf(buf, "%s TRUNCATED", pp->name);
else
sprintf(buf, "%s %u.%u.%u.%u->%u.%u.%u.%u",
sprintf(buf, "%s TRUNCATED", pp->name);
else
sprintf(buf, "%s %u.%u.%u.%u->%u.%u.%u.%u",
- pp->name, NIPQUAD(i
ph.
saddr),
- NIPQUAD(i
ph.
daddr));
+ pp->name, NIPQUAD(i
h->
saddr),
+ NIPQUAD(i
h->
daddr));
printk(KERN_DEBUG "IPVS: %s: %s\n", msg, buf);
}
printk(KERN_DEBUG "IPVS: %s: %s\n", msg, buf);
}