[<prev] [next>] [day] [month] [year] [list]
Message-ID: <39e6f6c70703112127r7c721a76kacaa28a54a92a360@mail.gmail.com>
Date: Mon, 12 Mar 2007 01:27:37 -0300
From: "Arnaldo Carvalho de Melo" <acme@...stprotocols.net>
To: "David Miller" <davem@...emloft.net>
Cc: "Netdev List" <netdev@...r.kernel.org>
Subject: [PATCH 12/18][SK_BUFF] ipv6: More skb_reset_network_header conversions related to skb_pull
Now related to this form:
skb->nh.ipv6h = (struct ipv6hdr *)skb_put(skb, length);
That, as the others, is done when skb->tail is still equal to skb->data, making
the conversion to skb_reset_network_header possible.
Also one more case equivalent to skb->nh.raw = skb->data, of this form:
iph = (struct ipv6hdr *)skb->data;
<SNIP>
skb->nh.ipv6h = iph;
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
net/ipv6/datagram.c | 5 +++--
net/ipv6/netfilter/ip6t_REJECT.c | 5 +++--
net/ipv6/raw.c | 4 +++-
net/sctp/ipv6.c | 3 +--
4 files changed, 10 insertions(+), 7 deletions(-)
View attachment "0012-SK_BUFF-ipv6-More-skb_reset_network_header-conver.patch" of type "text/x-patch" (3363 bytes)
Powered by blists - more mailing lists