commit | 1a00bc6928e5d066a479025c6eab38086abaebda | [log] [tgz] |
---|---|---|
author | guy <guy> | Mon Dec 10 05:49:40 2001 +0000 |
committer | guy <guy> | Mon Dec 10 05:49:40 2001 +0000 |
tree | 50b6d5f156b2aae059afbb180668e8145fc9476b | |
parent | fde2e99495fae8f5d5caca0c9142049adfdd3dce [diff] |
Fixes from Phil Wood: Don't subtract "tp_drops" from "tp_packets" - "ps_recv", on BSD, at least, includes packets dropped due to lack of buffer space, so it should do so on Linux as well. The "len" argument to "getsockopt()" is a value-result parameter, initially containing the size of the buffer being supplied; set it before the call. Catch "getsockopt()" errors and, if it's an error other than EOPNOTSUPP, return an error.