projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da56aea
)
[PKTGEN]: Make sure skb->{nh,h} are initialized in fill_packet_ipv6() too.
author
David S. Miller
<davem@davemloft.net>
Wed, 6 Sep 2006 17:35:53 +0000
(19:35 +0200)
committer
Adrian Bunk
<bunk@stusta.de>
Wed, 6 Sep 2006 17:35:53 +0000
(19:35 +0200)
Mirror the bug fix from fill_packet_ipv4()
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/core/pktgen.c
patch
|
blob
|
history
diff --git
a/net/core/pktgen.c
b/net/core/pktgen.c
index f6445303bda00345ce74aa5d4beb851ff1e80f2e..47d0c28ae39083747e617836c326989ca1af7dd9 100644
(file)
--- a/
net/core/pktgen.c
+++ b/
net/core/pktgen.c
@@
-2179,6
+2179,8
@@
static struct sk_buff *fill_packet_ipv6(struct net_device *odev,
skb->protocol = __constant_htons(ETH_P_IPV6);
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);