PERFORCE change 167405 for review

Ana Kukec anchie at FreeBSD.org
Sun Aug 16 13:59:24 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=167405

Change 167405 by anchie at 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);
 		}
 	}


More information about the p4-projects mailing list