[SK_BUFF]: Some more skb_put cases converted to skb_reset_network_header

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Arnaldo Carvalho de Melo
2007-03-10 19:15:25 -03:00
committed by David S. Miller
parent 31c7711b50
commit 2ca9e6f2c2
2 changed files with 5 additions and 3 deletions

View File

@@ -1126,7 +1126,8 @@ ssize_t ip_append_page(struct sock *sk, struct page *page,
* Find where to start putting bytes.
*/
data = skb_put(skb, fragheaderlen + fraggap);
skb->nh.iph = iph = (struct iphdr *)data;
skb_reset_network_header(skb);
iph = skb->nh.iph;
data += fragheaderlen;
skb->h.raw = data;