IP addresses are having 4 nos. Where you are doing the sorting?
I think, you should do fgets and memmove to 4 integers.
you can use longs for the other two.
your structure should be something like this,
int ip1;
int ip2;
int ip3;
int ip4;
long request;
long bytes;
then u do the sorting.
hope u can do it.
Antony
|