projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaf5806
)
[PKTGEN]: Make sure skb->{nh,h} are initialized in fill_packet_ipv6() too.
author
David S. Miller
<davem@sunset.davemloft.net>
Tue, 8 Aug 2006 03:52:10 +0000
(20:52 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Tue, 8 Aug 2006 03:52:10 +0000
(20:52 -0700)
Mirror the bug fix from fill_packet_ipv4()
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/pktgen.c
b/net/core/pktgen.c
index b1743375eb6d1dfc18b5de1d2cd7424b61892e94..6a7320b39ed0c21fd104afc543e961e758f993d3 100644
(file)
--- a/
net/core/pktgen.c
+++ b/
net/core/pktgen.c
@@
-2462,6
+2462,8
@@
static struct sk_buff *fill_packet_ipv6(struct net_device *odev,
skb->protocol = protocol;
skb->dev = odev;
skb->pkt_type = PACKET_HOST;
+ skb->nh.ipv6h = iph;
+ skb->h.uh = udph;
if (pkt_dev->nfrags <= 0)
pgh = (struct pktgen_hdr *)skb_put(skb, datalen);