Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2015 14:02:57 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r282536 - head/sys/net
Message-ID:  <201505061402.t46E2vuA015907@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505061402.t46E2vuA015907>