Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18869
b: refs/heads/master
c: 7ac5459
h: refs/heads/master
i:
  18867: 8c34604
v: v3
  • Loading branch information
David S. Miller committed Jan 18, 2006
1 parent 795d9ae commit 8cc2fab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e048a374d0d7beb9cf3529eac71ddd79699c8669
refs/heads/master: 7ac5459ec0f074022818af35c589b9e2b406d7c3
5 changes: 3 additions & 2 deletions trunk/net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1860,13 +1860,14 @@ static struct sk_buff *fill_packet_ipv4(struct net_device *odev,
*/
mod_cur_headers(pkt_dev);

skb = alloc_skb(pkt_dev->cur_pkt_size + 64 + 16, GFP_ATOMIC);
datalen = (odev->hard_header_len + 16) & ~0xf;
skb = alloc_skb(pkt_dev->cur_pkt_size + 64 + datalen, GFP_ATOMIC);
if (!skb) {
sprintf(pkt_dev->result, "No memory");
return NULL;
}

skb_reserve(skb, 16);
skb_reserve(skb, datalen);

/* Reserve for ethernet and IP header */
eth = (__u8 *) skb_push(skb, 14);
Expand Down

0 comments on commit 8cc2fab

Please sign in to comment.