summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_jail.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2010-01-11 21:21:30 +0000
committerbz <bz@FreeBSD.org>2010-01-11 21:21:30 +0000
commit4ba08a56422011f3fba189533424d000c34e8293 (patch)
tree0000584e3a58dd2ef3441f5972ed74627e62219b /sys/kern/kern_jail.c
parent191eb488de3c7c24afecc7d659b15ebf9971a6f3 (diff)
downloadFreeBSD-src-4ba08a56422011f3fba189533424d000c34e8293.zip
FreeBSD-src-4ba08a56422011f3fba189533424d000c34e8293.tar.gz
Adjust a comment to reflect reality, as we have proper source
address selection, even for IPv4, since r183571. Pointed out by: Jase Thew (bazerka beardz.net) MFC after: 3 days
Diffstat (limited to 'sys/kern/kern_jail.c')
-rw-r--r--sys/kern/kern_jail.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c
index 7ee68c4..f4cef03 100644
--- a/sys/kern/kern_jail.c
+++ b/sys/kern/kern_jail.c
@@ -753,7 +753,9 @@ kern_jail_set(struct thread *td, struct uio *optuio, int flags)
* IP addresses are all sorted but ip[0] to preserve
* the primary IP address as given from userland.
* This special IP is used for unbound outgoing
- * connections as well for "loopback" traffic.
+ * connections as well for "loopback" traffic in case
+ * source address selection cannot find any more fitting
+ * address to connect from.
*/
if (ip4s > 1)
qsort(ip4 + 1, ip4s - 1, sizeof(*ip4), qcmp_v4);
OpenPOWER on IntegriCloud