cout << "Stats:\n";
cout << "number of incoming packets\n";
cout << " that were discarded even though they did not have errors " << buf->dwInDiscards << endl;
cout << " that were discarded because of errors " << buf->dwInErrors << endl;

cout << "number of outgoing packets\n";
cout << " that were discarded even though they did not have errors " << buf->dwOutDiscards << endl;
cout << " that were discarded because of errors " << buf->dwOutErrors << endl;