In ICMP taps, don't use g_slist_insert_sorted (which results in
authorEvan Huus <eapache@gmail.com>
Tue, 28 May 2013 23:20:44 +0000 (23:20 -0000)
committerEvan Huus <eapache@gmail.com>
Tue, 28 May 2013 23:20:44 +0000 (23:20 -0000)
commitd986c63c1757844a414bb48b8a6822a9a5d107e7
tree32229fd36c7c658cfad49d1c34e9a91cd9832424
parenta9ce065e495e6d68d215df98be9e607fbe146278
In ICMP taps, don't use g_slist_insert_sorted (which results in
n^2 time on the number of packets). Just prepend to the list, then sort
it when we actually need to calculate the statistics.

Should fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8721

svn path=/trunk/; revision=49606
ui/cli/tap-icmpstat.c
ui/cli/tap-icmpv6stat.c