aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipconfig.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-03-10 17:27:27 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:24:52 -0400
commit04b964dbad25cbd6edd8ecbeca2efb40c9860865 (patch)
treef9451694dd084142b6397c1d9f3ffa1e9851c1f1 /net/ipv4/ipconfig.c
parent2ca9e6f2c2a4117d21947e911ae1f5e5306b0df0 (diff)
[SK_BUFF] ipconfig: Another conversion to skb_reset_network_header related to skb_put
boot_pkt->iph is the first member, that is at skb->data, so just use 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/ipconfig.c')
-rw-r--r--net/ipv4/ipconfig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index c43699f374cd..6e8998409cbe 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -702,7 +702,8 @@ static void __init ic_bootp_send_if(struct ic_device *d, unsigned long jiffies_d
702 memset(b, 0, sizeof(struct bootp_pkt)); 702 memset(b, 0, sizeof(struct bootp_pkt));
703 703
704 /* Construct IP header */ 704 /* Construct IP header */
705 skb->nh.iph = h = &b->iph; 705 skb_reset_network_header(skb);
706 h = skb->nh.iph;
706 h->version = 4; 707 h->version = 4;
707 h->ihl = 5; 708 h->ihl = 5;
708 h->tot_len = htons(sizeof(struct bootp_pkt)); 709 h->tot_len = htons(sizeof(struct bootp_pkt));