Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33615
b: refs/heads/master
c: 80193ae
h: refs/heads/master
i:
  33613: 336fd94
  33611: ca21282
  33607: 672c015
  33599: e352d70
v: v3
  • Loading branch information
Ian McDonald authored and David S. Miller committed Aug 27, 2006
1 parent 1cb6f64 commit b46e123
Show file tree
Hide file tree
Showing 3 changed files with 22 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: 837d107cd101fbf734e9ea2bbb5c7336a329e432
refs/heads/master: 80193aee18bc862e284ba18504f3a3e14706a997
19 changes: 19 additions & 0 deletions trunk/net/dccp/ccids/lib/packet_history.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,25 @@ struct dccp_tx_hist_entry *

EXPORT_SYMBOL_GPL(dccp_tx_hist_find_entry);

int dccp_rx_hist_find_entry(const struct list_head *list, const u64 seq,
u8 *ccval)
{
struct dccp_rx_hist_entry *packet = NULL, *entry;

list_for_each_entry(entry, list, dccphrx_node)
if (entry->dccphrx_seqno == seq) {
packet = entry;
break;
}

if (packet)
*ccval = packet->dccphrx_ccval;

return packet != NULL;
}

EXPORT_SYMBOL_GPL(dccp_rx_hist_find_entry);

void dccp_tx_hist_purge_older(struct dccp_tx_hist *hist,
struct list_head *list,
struct dccp_tx_hist_entry *packet)
Expand Down
2 changes: 2 additions & 0 deletions trunk/net/dccp/ccids/lib/packet_history.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ static inline void dccp_tx_hist_entry_delete(struct dccp_tx_hist *hist,
extern struct dccp_tx_hist_entry *
dccp_tx_hist_find_entry(const struct list_head *list,
const u64 seq);
extern int dccp_rx_hist_find_entry(const struct list_head *list, const u64 seq,
u8 *ccval);

static inline void dccp_tx_hist_add_entry(struct list_head *list,
struct dccp_tx_hist_entry *entry)
Expand Down

0 comments on commit b46e123

Please sign in to comment.