Skip to content

Commit

Permalink
[SK_BUFF] ipconfig: Another conversion to skb_reset_network_header re…
Browse files Browse the repository at this point in the history
…lated 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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
acmel authored and David S. Miller committed Apr 26, 2007
1 parent 2ca9e6f commit 04b964d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/ipv4/ipconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,8 @@ static void __init ic_bootp_send_if(struct ic_device *d, unsigned long jiffies_d
memset(b, 0, sizeof(struct bootp_pkt));

/* Construct IP header */
skb->nh.iph = h = &b->iph;
skb_reset_network_header(skb);
h = skb->nh.iph;
h->version = 4;
h->ihl = 5;
h->tot_len = htons(sizeof(struct bootp_pkt));
Expand Down

0 comments on commit 04b964d

Please sign in to comment.