summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_output.c
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1997-02-28 19:40:48 +0000
committerfenner <fenner@FreeBSD.org>1997-02-28 19:40:48 +0000
commita55ffe56977ba99cc67b3ec026e9d99c6ba268fd (patch)
treea6bf18677813ab56e118fa3bc63dac7f5b726bfa /sys/netinet/ip_output.c
parent48e0c6e052bf22782e0abe300f1528d29d7be875 (diff)
downloadFreeBSD-src-a55ffe56977ba99cc67b3ec026e9d99c6ba268fd.zip
FreeBSD-src-a55ffe56977ba99cc67b3ec026e9d99c6ba268fd.tar.gz
Fix a comment and some commented-out code in ip_mloopback to
reflect how multicast loopback really works.
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r--sys/netinet/ip_output.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 68d30c7..0ca3ee2 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ip_output.c 8.3 (Berkeley) 1/21/94
- * $Id$
+ * $Id: ip_output.c,v 1.51 1997/02/22 09:41:36 peter Exp $
*/
#define _IP_VHL
@@ -1310,18 +1310,17 @@ ip_mloopback(ifp, m, dst)
}
/*
* NB:
- * We can't simply call ip_input() directly because
- * the ip_mforward() depends on the `input interface'
- * being set to something unreasonable so that we don't
- * attempt to forward the looped-back copy.
- * It's also not clear whether there are any lingering
- * reentrancy problems in other areas which might be
- * exposed by this code. For the moment, we'll err
- * on the side of safety by continuing to abuse
- * loinput().
+ * It's not clear whether there are any lingering
+ * reentrancy problems in other areas which might
+ * be exposed by using ip_input directly (in
+ * particular, everything which modifies the packet
+ * in-place). Yet another option is using the
+ * protosw directly to deliver the looped back
+ * packet. For the moment, we'll err on the side
+ * of safety by continuing to abuse looutput().
*/
#ifdef notdef
- copym->m_pkthdr.rcvif = &loif[0];
+ copym->m_pkthdr.rcvif = ifp;
ip_input(copym)
#else
(void) looutput(ifp, copym, (struct sockaddr *)dst, NULL);
OpenPOWER on IntegriCloud