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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to