aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_output.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-03-10 17:15:25 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:24:51 -0400
commit2ca9e6f2c2a4117d21947e911ae1f5e5306b0df0 (patch)
treef303929b784c744e52eae5a2e42b6190ca123f71 /net/ipv4/ip_output.c
parent31c7711b509d470ab1e175e7bb98ea66a82aa916 (diff)
[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>
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r--net/ipv4/ip_output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index d329718a8e8c..dde51fb72cda 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -1126,7 +1126,8 @@ ssize_t ip_append_page(struct sock *sk, struct page *page,
1126 * Find where to start putting bytes. 1126 * Find where to start putting bytes.
1127 */ 1127 */
1128 data = skb_put(skb, fragheaderlen + fraggap); 1128 data = skb_put(skb, fragheaderlen + fraggap);
1129 skb->nh.iph = iph = (struct iphdr *)data; 1129 skb_reset_network_header(skb);
1130 iph = skb->nh.iph;
1130 data += fragheaderlen; 1131 data += fragheaderlen;
1131 skb->h.raw = data; 1132 skb->h.raw = data;
1132 1133