Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 - Fix comment which was no longer accurate afte...
details: https://anonhg.NetBSD.org/src/rev/3446e98f0905
branches: trunk
changeset: 334762:3446e98f0905
user: seanb <seanb%NetBSD.org@localhost>
date: Fri Dec 05 18:45:37 2014 +0000
description:
- Fix comment which was no longer accurate after previous change to move
from in_pcbconnect -> in6_pcbsetport.
diffstat:
sys/netinet6/udp6_output.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (35 lines):
diff -r 3aecc7224653 -r 3446e98f0905 sys/netinet6/udp6_output.c
--- a/sys/netinet6/udp6_output.c Fri Dec 05 18:42:02 2014 +0000
+++ b/sys/netinet6/udp6_output.c Fri Dec 05 18:45:37 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udp6_output.c,v 1.46 2014/11/14 17:34:23 maxv Exp $ */
+/* $NetBSD: udp6_output.c,v 1.47 2014/12/05 18:45:37 seanb Exp $ */
/* $KAME: udp6_output.c,v 1.43 2001/10/15 09:19:52 itojun Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udp6_output.c,v 1.46 2014/11/14 17:34:23 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udp6_output.c,v 1.47 2014/12/05 18:45:37 seanb Exp $");
#include "opt_inet.h"
@@ -177,11 +177,11 @@
if (sin6) {
/*
- * IPv4 version of udp_output calls in_pcbconnect in this case,
- * which needs splnet and affects performance.
- * We have to do this as well, since in6_pcbsetport needs to
- * know the foreign address for some of the algorithms that
- * it employs.
+ * Slightly different than v4 version in that we call
+ * in6_selectsrc and in6_pcbsetport to fill in the local
+ * address and port rather than in_pcbconnect. in_pcbconnect
+ * sets in6p_faddr which causes EISCONN below to be hit on
+ * subsequent sendto.
*/
if (sin6->sin6_port == 0) {
error = EADDRNOTAVAIL;
Home |
Main Index |
Thread Index |
Old Index