Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33975
b: refs/heads/master
c: cbe21d8
h: refs/heads/master
i:
  33973: 434f034
  33971: e250ff2
  33967: c15be41
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Sep 18, 2006
1 parent c9500e2 commit 7384516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 080f22c0dc544e498e57ad281a9de063fa839957
refs/heads/master: cbe21d8fefca605b90e34f0f019505e599712f9b
4 changes: 1 addition & 3 deletions trunk/net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,6 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev, struct packe
if ((int)snaplen < 0)
snaplen = 0;
}
if (snaplen > skb->len-skb->data_len)
snaplen = skb->len-skb->data_len;

spin_lock(&sk->sk_receive_queue.lock);
h = (struct tpacket_hdr *)packet_lookup_frame(po, po->head);
Expand All @@ -644,7 +642,7 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev, struct packe
status &= ~TP_STATUS_LOSING;
spin_unlock(&sk->sk_receive_queue.lock);

memcpy((u8*)h + macoff, skb->data, snaplen);
skb_copy_bits(skb, 0, (u8*)h + macoff, snaplen);

h->tp_len = skb->len;
h->tp_snaplen = snaplen;
Expand Down

0 comments on commit 7384516

Please sign in to comment.