summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2003-04-23 23:45:57 +0000
committerarchie <archie@FreeBSD.org>2003-04-23 23:45:57 +0000
commit6649125e4d15fa4933b31d88d29c13c9d59ca2ca (patch)
treed46a69919ec1b9ff08af46b976f7bba6b38c68ce /sys/net
parent5d673c0d92ced328ef6b56e786b9c1266978620b (diff)
downloadFreeBSD-src-6649125e4d15fa4933b31d88d29c13c9d59ca2ca.zip
FreeBSD-src-6649125e4d15fa4933b31d88d29c13c9d59ca2ca.tar.gz
Tweak to previous commit: increment ifp->if_iqdrops if the m_copy() fails.
Suggested by: Neelkanth Natu <neelnatu@yahoo.com>
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_ethersubr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index bb2bbd6..541ef43 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -287,7 +287,8 @@ ether_output(ifp, m, dst, rt0)
if (csum_flags & CSUM_DATA_VALID)
n->m_pkthdr.csum_data = 0xffff;
(void)if_simloop(ifp, n, dst->sa_family, hlen);
- }
+ } else
+ ifp->if_iqdrops++;
} else if (bcmp(eh->ether_dhost, eh->ether_shost,
ETHER_ADDR_LEN) == 0) {
m->m_pkthdr.csum_flags |= csum_flags;
OpenPOWER on IntegriCloud