Suppress update ifnet.iflastchange when processing packets for SNMP

requirements(RFC1573, interface MIB). This change for 4.4BSD was
first introduced in if_ethersubr.c:1.17->1.18.

BTW, iflastchange on all of IFs are inconsistent. e.g.
     ether, tun: update
     fddi, tokenring, ppp: not update
I'll make patch later.

Obtained from:	KAME
MFC after:	2 weeks
This commit is contained in:
Munechika SUMIKAWA 2001-06-19 15:53:51 +00:00
parent 26f6b0fbe8
commit 64fbad5899
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78470

View file

@ -253,7 +253,6 @@ gif_output(ifp, m, dst, rt)
goto end;
}
getmicrotime(&ifp->if_lastchange);
m->m_flags &= ~(M_BCAST|M_MCAST);
if (!(ifp->if_flags & IFF_UP) ||
sc->gif_psrc == NULL || sc->gif_pdst == NULL) {