Tweak to previous commit: increment ifp->if_iqdrops if the m_copy() fails.

Suggested by:	Neelkanth Natu <neelnatu@yahoo.com>
This commit is contained in:
Archie Cobbs 2003-04-23 23:45:57 +00:00
parent f2e30adc3f
commit c1404dc060
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113950

View File

@ -287,7 +287,8 @@ ether_output(ifp, m, dst, rt0)
if (csum_flags & CSUM_DATA_VALID) if (csum_flags & CSUM_DATA_VALID)
n->m_pkthdr.csum_data = 0xffff; n->m_pkthdr.csum_data = 0xffff;
(void)if_simloop(ifp, n, dst->sa_family, hlen); (void)if_simloop(ifp, n, dst->sa_family, hlen);
} } else
ifp->if_iqdrops++;
} else if (bcmp(eh->ether_dhost, eh->ether_shost, } else if (bcmp(eh->ether_dhost, eh->ether_shost,
ETHER_ADDR_LEN) == 0) { ETHER_ADDR_LEN) == 0) {
m->m_pkthdr.csum_flags |= csum_flags; m->m_pkthdr.csum_flags |= csum_flags;