/* * $smu-mark$ * $name: statistics.c$ * $author: Salvatore Sanfilippo $ * $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$ * $license: This software is under GPL version 2 of license$ * $date: Fri Nov 5 11:55:50 MET 1999$ * $rev: 8$ */ #include #include #include #include "hping2.h" #include "globals.h" void print_statistics(int signal_id) { unsigned int lossrate; uint32_t losspack=0; #if (defined OSTYPE_LINUX) && (!defined FORCE_LIBPCAP) close_sockpacket(sockpacket); #else close_pcap(); #endif /* OSTYPE_LINUX && !FORCE_LIBPCAP */ if (recv_pkt > 0){ losspack=(recv_pkt