svn commit: r282536 - head/sys/net
Andrey V. Elsukov
ae at FreeBSD.org
Wed May 6 14:02:58 UTC 2015
Author: ae
Date: Wed May 6 14:02:57 2015
New Revision: 282536
URL: https://svnweb.freebsd.org/changeset/base/282536
Log:
Pass mtag argument into m_tag_locate() to continue the search from
the last found mtag.
Modified:
head/sys/net/if_me.c
Modified: head/sys/net/if_me.c
==============================================================================
--- head/sys/net/if_me.c Wed May 6 11:50:30 2015 (r282535)
+++ head/sys/net/if_me.c Wed May 6 14:02:57 2015 (r282536)
@@ -477,7 +477,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-all
mailing list