diff options
Diffstat (limited to 'net/ipv4/ipconfig.c')
-rw-r--r-- | net/ipv4/ipconfig.c | 3 |
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)); |