Skip to content

Commit

Permalink
[CCID3]: Separate most of the packet history code
Browse files Browse the repository at this point in the history
This also changes the list_for_each_entry_safe_continue behaviour to match its
kerneldoc comment, that is, to start after the pos passed.

Also adds several helper functions from previously open coded fragments, making
the code more clear.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
  • Loading branch information
Arnaldo Carvalho de Melo authored and David S. Miller committed Aug 29, 2005
1 parent 540722f commit 8c60f3f
Show file tree
Hide file tree
Showing 6 changed files with 518 additions and 213 deletions.
3 changes: 2 additions & 1 deletion include/linux/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ static inline void list_splice_init(struct list_head *list,
* @member: the name of the list_struct within the struct.
*/
#define list_for_each_entry_safe_continue(pos, n, head, member) \
for (pos = n, n = list_entry(n->member.next, typeof(*n), member); \
for (pos = list_entry(pos->member.next, typeof(*pos), member), \
n = list_entry(pos->member.next, typeof(*pos), member); \
&pos->member != (head); \
pos = n, n = list_entry(n->member.next, typeof(*n), member))

Expand Down
3 changes: 2 additions & 1 deletion net/dccp/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
obj-$(CONFIG_IP_DCCP) += dccp.o

dccp-y := ccid.o input.o ipv4.o minisocks.o options.o output.o proto.o timer.o
dccp-y := ccid.o input.o ipv4.o minisocks.o options.o output.o proto.o \
timer.o packet_history.o

obj-y += ccids/
Loading

0 comments on commit 8c60f3f

Please sign in to comment.