Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111793
b: refs/heads/master
c: 249c8b4
h: refs/heads/master
i:
  111791: 3e563a4
v: v3
  • Loading branch information
David S. Miller committed Sep 23, 2008
1 parent f0f889c commit 1409d99
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d258b4914bcda9177bcc7bbd8e1a97b281b460af
refs/heads/master: 249c8b42c7e5e6f33d0ff983041f08278b137e53
18 changes: 18 additions & 0 deletions trunk/include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,24 @@ static inline bool skb_queue_is_last(const struct sk_buff_head *list,
return (skb->next == (struct sk_buff *) list);
}

/**
* skb_queue_next - return the next packet in the queue
* @list: queue head
* @skb: current buffer
*
* Return the next packet in @list after @skb. It is only valid to
* call this if skb_queue_is_last() evaluates to false.
*/
static inline struct sk_buff *skb_queue_next(const struct sk_buff_head *list,
const struct sk_buff *skb)
{
/* This BUG_ON may seem severe, but if we just return then we
* are going to dereference garbage.
*/
BUG_ON(skb_queue_is_last(list, skb));
return skb->next;
}

/**
* skb_get - reference buffer
* @skb: buffer to reference
Expand Down

0 comments on commit 1409d99

Please sign in to comment.