From owner-freebsd-net Tue Dec 10 18:30:31 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0734437B401 for ; Tue, 10 Dec 2002 18:30:30 -0800 (PST) Received: from mtiwmhc11.worldnet.att.net (mtiwmhc11.worldnet.att.net [204.127.131.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44BA443EC2 for ; Tue, 10 Dec 2002 18:30:29 -0800 (PST) (envelope-from cswiger@mac.com) Received: from prime ([12.88.91.118]) by mtiwmhc11.worldnet.att.net (InterMail vM.5.01.05.12 201-253-122-126-112-20020820) with SMTP id <20021211023027.FCBG9286.mtiwmhc11.worldnet.att.net@prime>; Wed, 11 Dec 2002 02:30:27 +0000 Message-ID: <00cc01c2a0bd$43e465a0$0301a8c0@prime> From: "Charles Swiger" To: "Joshua Graessley" , References: Subject: Re: broadcast over loopback Date: Tue, 10 Dec 2002 21:30:25 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Joshua Graessley wrote: [ ... ] > If someone is using broadcast for a service discovery protocol instead > of multicast, they would want services, whether running locally or > remotely, to receive that broadcast. Sure, since the thing doing service discovery may not be the same as the thing (or things) advertising services. > If loopback is the only interface, it might still be desirable to find > services running on the local machine. Besides, giving the loopback special case behavior when it's not needed doesn't strike me as a good idea. Presumably one would want to remove the second test: /* * Multicasts with a time-to-live of zero may be looped- * back, above, but must not be transmitted on a network. * Also, multicasts addressed to the loopback interface * are not sent -- the above call to ip_mloopback() will * loop back a copy if this host actually belongs to the * destination group on the loopback interface. */ if (ip->ip_ttl == 0 || ifp->if_flags & IFF_LOOPBACK) { m_freem(m); goto done; } ...around line 380 of /usr/src/sys/netinet/ip_output.c, and rebuild the kernel to test your suggested change out. -Chuck To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message