tmp_suning_uos_patched/net
Pablo Neira Ayuso ff21d5774b [NETFILTER]: fix list traversal order in ctnetlink
Currently conntracks are inserted after the head. That means that
conntracks are sorted from the biggest to the smallest id. This happens
because we use list_prepend (list_add) instead list_add_tail. This can
result in problems during the list iteration.

                 list_for_each(i, &ip_conntrack_hash[cb->args[0]]) {
                         h = (struct ip_conntrack_tuple_hash *) i;
                         if (DIRECTION(h) != IP_CT_DIR_ORIGINAL)
                                 continue;
                         ct = tuplehash_to_ctrack(h);
                         if (ct->id <= *id)
                                 continue;

In that case just the first conntrack in the bucket will be dumped. To
fix this, we iterate the list from the tail to the head via
list_for_each_prev. Same thing for the list of expectations.

Signed-off-by: Pablo Neira Ayuso <pablo@eurodev.net>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-08-29 15:40:25 -07:00
..
802 [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
8021q [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
appletalk [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
atm [NET]: Kill skb->list 2005-08-29 15:31:14 -07:00
ax25 [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
bluetooth [Bluetooth] Add direction and timestamp to stack internal events 2005-08-06 12:36:54 +02:00
bridge [NETLINK]: Add properly module refcounting for kernel netlink sockets. 2005-08-29 15:35:08 -07:00
core [NETFILTER]: Extend netfilter logging API 2005-08-29 15:38:07 -07:00
decnet [NETLINK]: Add properly module refcounting for kernel netlink sockets. 2005-08-29 15:35:08 -07:00
econet [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
ethernet [NET]: Remove explicit initializations of skb->input_dev 2005-08-29 15:33:26 -07:00
ipv4 [NETFILTER]: fix list traversal order in ctnetlink 2005-08-29 15:40:25 -07:00
ipv6 [INET]: Move bind_hash from tcp_sk to inet_sk 2005-08-29 15:38:48 -07:00
ipx [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
irda [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
key [IPSEC]: Add XFRM_STATE_NOPMTUDISC flag 2005-06-20 13:21:43 -07:00
lapb [NET]: Kill skb->list 2005-08-29 15:31:14 -07:00
llc [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
netfilter [NETFILTER]: cleanup nfnetlink_check_attributes() 2005-08-29 15:40:06 -07:00
netlink [NETLINK]: Add properly module refcounting for kernel netlink sockets. 2005-08-29 15:35:08 -07:00
netrom [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
packet [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
rose [NET]: Kill skb->list 2005-08-29 15:31:14 -07:00
rxrpc [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
sched [NET]: Kill skb->tc_classid 2005-08-29 15:31:18 -07:00
sctp [NET]: Cleanup INET_REFCNT_DEBUG code 2005-08-29 15:37:29 -07:00
sunrpc [RPC]: Kill bogus kmap in krb5 2005-08-23 10:09:53 -07:00
unix [NET]: Kill skb->list 2005-08-29 15:31:14 -07:00
wanrouter [NET]: __be'ify *_type_trans() 2005-07-12 12:08:43 -07:00
x25 [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
xfrm [NETLINK]: Add properly module refcounting for kernel netlink sockets. 2005-08-29 15:35:08 -07:00
compat.c [NET]: Fix memory leak in sys_{send,recv}msg() w/compat 2005-08-09 15:29:19 -07:00
Kconfig [NETFITLER]: Add nfnetlink layer. 2005-08-29 15:31:29 -07:00
Makefile [NETFITLER]: Add nfnetlink layer. 2005-08-29 15:31:29 -07:00
nonet.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
socket.c [NET]: dont use strlen() but the result from a prior sprintf() 2005-06-22 14:32:51 -07:00
sysctl_net.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
TUNABLE Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00