example script to dump tcp/ip stats ported to new library version