PERFORCE change 165517 for review

Ana Kukec anchie at FreeBSD.org
Wed Jul 1 20:36:33 UTC 2009


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

Change 165517 by anchie at anchie_malimis on 2009/07/01 20:35:55

	Return after passing the mbuf to the user space via the rtm interface.	

Affected files ...

.. //depot/projects/soc2009/anchie_send/src/sys/netinet6/nd6.c#12 edit

Differences ...

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

@@ -1914,12 +1914,13 @@
 	if (send_output_hook != NULL) {
 		mtag = m_tag_find(m, PACKET_TAG_ND_OUTGOING, NULL);
 		if (mtag != NULL) {
-			printf("%s %d: ND_OUTGOING tag found.\n", __FUNCTION__, __LINE__);
+			printf("%s: ND_OUTGOING tag found.\n", __FUNCTION__);
 			nd_type = (unsigned short *)(mtag + 1);
+			send_output_hook(m, ifp, 0, ip6len);
 		} else
-			return(ENOMSG);
+			error = EOPNOTSUPP;
 
-		send_output_hook(m, ifp, 0, ip6len);
+		return error;
 	} else {
 
 	/*


More information about the p4-projects mailing list