|
@@ -99,11 +99,13 @@ static void udp_dump(struct udp_table *table, struct sk_buff *skb, struct netlin
|
|
|
s_slot = cb->args[0];
|
|
s_slot = cb->args[0];
|
|
|
num = s_num = cb->args[1];
|
|
num = s_num = cb->args[1];
|
|
|
|
|
|
|
|
- for (slot = s_slot; slot <= table->mask; num = s_num = 0, slot++) {
|
|
|
|
|
|
|
+ for (slot = s_slot; slot <= table->mask; s_num = 0, slot++) {
|
|
|
struct sock *sk;
|
|
struct sock *sk;
|
|
|
struct hlist_nulls_node *node;
|
|
struct hlist_nulls_node *node;
|
|
|
struct udp_hslot *hslot = &table->hash[slot];
|
|
struct udp_hslot *hslot = &table->hash[slot];
|
|
|
|
|
|
|
|
|
|
+ num = 0;
|
|
|
|
|
+
|
|
|
if (hlist_nulls_empty(&hslot->head))
|
|
if (hlist_nulls_empty(&hslot->head))
|
|
|
continue;
|
|
continue;
|
|
|
|
|
|