Re: More IP_MASQ info 2.1.92p1 + TCP patch

A.N.Kuznetsov (kuznet@ms2.inr.ac.ru)
Mon, 30 Mar 1998 21:51:03 +0400


In article <00a601bd5be9$9a94ea00$4d01a8c0@wanderer.benshaw.com> you wrote:
: Mar 30 08:53:02 gateway.kernel: IP_MASQ: failed TCP/UDP checksum from
: 129.219.44.72!

net/core/ip_masq_app.c

static struct sk_buff * skb_replace(struct sk_buff *skb, int pri, char *o_buf, int o_len, char *n_buf, int n_len)
{
int maxsize, diff, o_offset;
struct sk_buff *n_skb;
int offset;

- maxsize = skb->truesize - sizeof(struct sk_buff);
+ maxsize = skb->truesize;

diff = n_len - o_len;
o_offset = o_buf - (char*) skb->data;

Alexey Kuznetsov

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu