projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ca9e6f
)
[SK_BUFF] ipconfig: Another conversion to skb_reset_network_header related to skb_put
author
Arnaldo Carvalho de Melo
<acme@redhat.com>
Sat, 10 Mar 2007 22:27:27 +0000
(19:27 -0300)
committer
David S. Miller
<davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:24:52 +0000
(22:24 -0700)
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>
net/ipv4/ipconfig.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/ipconfig.c
b/net/ipv4/ipconfig.c
index c43699f374cd480a4771ee610229aea7ccdf090a..6e8998409cbe6eb817ecd1cc69b4df7a2b0c8cf1 100644
(file)
--- 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));