svn commit: r284073 - stable/10/sys/net
Andrey V. Elsukov
ae at FreeBSD.org
Sat Jun 6 13:29:42 UTC 2015
Author: ae
Date: Sat Jun 6 13:29:41 2015
New Revision: 284073
URL: https://svnweb.freebsd.org/changeset/base/284073
Log:
MFC r276902,282536:
Pass mtag argument into m_tag_locate() to continue the search from
the last found mtag.
Modified:
stable/10/sys/net/if_me.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/net/if_me.c
==============================================================================
--- stable/10/sys/net/if_me.c Sat Jun 6 13:26:13 2015 (r284072)
+++ stable/10/sys/net/if_me.c Sat Jun 6 13:29:41 2015 (r284073)
@@ -487,7 +487,7 @@ me_check_nesting(struct ifnet *ifp, stru
count = 1;
mtag = NULL;
- while ((mtag = m_tag_locate(m, MTAG_ME, 0, NULL)) != NULL) {
+ while ((mtag = m_tag_locate(m, MTAG_ME, 0, mtag)) != NULL) {
if (*(struct ifnet **)(mtag + 1) == ifp) {
log(LOG_NOTICE, "%s: loop detected\n", ifp->if_xname);
return (EIO);
More information about the svn-src-stable
mailing list