diff options
author | glebius <glebius@FreeBSD.org> | 2005-12-06 11:16:11 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-12-06 11:16:11 +0000 |
commit | f5b3d1a6c477ee8fd2cbe84115ae58ada92829f8 (patch) | |
tree | dde1349581f5b4a7c3fa786dd3137edc64ae265b | |
parent | dc6ebf59045b102756965542d314091c951d5cec (diff) | |
download | FreeBSD-src-f5b3d1a6c477ee8fd2cbe84115ae58ada92829f8.zip FreeBSD-src-f5b3d1a6c477ee8fd2cbe84115ae58ada92829f8.tar.gz |
When we drop packet due to no space in output interface output queue, also
increase the ifp->if_snd.ifq_drops.
PR: 72440
Submitted by: ikob
-rw-r--r-- | sys/netinet/ip_output.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 6e4388e..b8599e6 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -374,6 +374,7 @@ again: { error = ENOBUFS; ipstat.ips_odropped++; + ifp->if_snd.ifq_drops += (ip->ip_len / ifp->if_mtu + 1); goto bad; } |