Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Aug 2009 13:59:23 GMT
From:      Ana Kukec <anchie@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 167405 for review
Message-ID:  <200908161359.n7GDxNZh069009@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=167405

Change 167405 by anchie@anchie_desnimis on 2009/08/16 13:58:46

	All mbufs containing ND messages are tagged in nd6_*_output()
	functions with PACKET_TAG_ND_OUTGOING. On one place nd6_na_input()
	calls directly nd6_output_lle(), so the packet does not traverse
	through nd6_*_output() and ends up being untagged. 	

Affected files ...

.. //depot/projects/soc2009/anchie_send/src/sys/netinet6/nd6_nbr.c#8 edit

Differences ...

==== //depot/projects/soc2009/anchie_send/src/sys/netinet6/nd6_nbr.c#8 (text+ko) ====

@@ -897,6 +897,15 @@
 			 * we assume ifp is not a loopback here, so just set
 			 * the 2nd argument as the 1st one.
 			 */
+
+			if (send_input_hook != NULL) {
+				mtag = m_tag_get(PACKET_TAG_ND_OUTGOING, 
+					sizeof(unsigned short), M_NOWAIT);
+				if (mtag == NULL)
+					goto bad;
+				m_tag_prepend(m, mtag);
+			}
+
 			nd6_output_lle(ifp, ifp, m_hold, L3_ADDR_SIN6(ln), NULL, ln, &chain);
 		}
 	}



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