Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=04b964dbad25cbd6edd8ecbeca2efb40c9860865
Commit:     04b964dbad25cbd6edd8ecbeca2efb40c9860865
Parent:     2ca9e6f2c2a4117d21947e911ae1f5e5306b0df0
Author:     Arnaldo Carvalho de Melo <[EMAIL PROTECTED]>
AuthorDate: Sat Mar 10 19:27:27 2007 -0300
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Apr 25 22:24:52 2007 -0700

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 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 c43699f..6e89984 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
        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));
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to