From dcs@newsguy.com  Wed Jul 11 18:59:39 2001
Return-Path: <dcs@newsguy.com>
Received: from newsguy.com (smtp.newsguy.com [209.155.56.71])
	by hub.freebsd.org (Postfix) with ESMTP id 6AB0437B403
	for <FreeBSD-gnats-submit@FreeBSD.ORG>; Wed, 11 Jul 2001 18:59:38 -0700 (PDT)
	(envelope-from dcs@newsguy.com)
Received: from newsguy.com (ppp045-bsace7001.telebrasilia.net.br [200.181.80.45])
	by newsguy.com (8.9.1a/8.9.1) with ESMTP id SAA69486;
	Wed, 11 Jul 2001 18:59:10 -0700 (PDT)
Message-Id: <3B4D0529.A40C36B9@newsguy.com>
Date: Wed, 11 Jul 2001 23:02:18 -0300
From: "Daniel C. Sobral" <dcs@newsguy.com>
To: sam@inf.enst.fr, Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: IPv4 multicast does not work without route

>Number:         28902
>Category:       kern
>Synopsis:       IPv4 multicast does not work without route
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 11 19:00:01 PDT 2001
>Closed-Date:    Mon Jul 16 16:36:08 PDT 2001
>Last-Modified:  Wed Oct 26 05:49:11 GMT 2005
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 >  <<On Thu,  8 Jun 2000 14:06:27 +0200 (CEST), sam@inf.enst.fr said:
 > 
 >  >      A FreeBSD box on a private network with IPv4 routes to local
 >  >      network only. No default route has been set, nor any route for
 >  >      the 224.0.0.0/8 addresses.
 > 
 >  Then your configuration is broken.  If you want to send multicasts,
 >  you MUST configure a route for them, end of story.
 > 
 >  This requirement has existed throughout the entire history of IP
 >  multicast under UNIX.
 
 Many bugs existed throughout the entire history of <whatever> under Unix
 until they get fixed. RFC1112 says:
 
  Second, for hosts that may be attached to more than one network, the
  service interface should provide a way for the upper-layer protocol
  to identify which network interface is be used for the multicast
  transmission.  Only one interface is used for the initial
  transmission; multicast routers are responsible for forwarding to any
  other networks, if necessary.  If the upper-layer protocol chooses
  not to identify an outgoing interface, a default interface should be
                                         +++++++++++++++++++++++++++++
  used, preferably under the control of system management.
  ++++
 
 (If I were dark side-inclined, I'd suggest lo0 :)
 
 Also, you mention "send". Let me further point out that the PR
 description begins with:
 
 >        When trying to join a multicast group with a
 >        IPPROTO_IP/ADD_MEMBERSHIP ioctl call on a IPv4 socket, FreeBSD
 
 That's not sending (even though what the PR originator really wants is
 to send). That's what RFC1112 describe as:
 
  However, before any datagrams destined to a particular
  group can be received, an upper-layer protocol must ask the IP module
  to join that group.  
 
 It goes on to say that
 
  The interface argument may be omitted on
  hosts that support only one interface.    
 
 and
 
  It is permissible to join the same group on more than one interface,
 
 >  Note that it would be an error for packets to be multicast out
 >  multiple interfaces simultaneously.  The definition of the multicast
 >  service model says that hosts MUST NOT do this; only a multicast
 >  router is permitted to send the same packet in multiple directions at
 >  once.
 
 It doesn't say "must not", though this is clearly the intent.
 
 -- 
 Daniel C. Sobral			(8-DCS)
 dcs@newsguy.com
 dcs@freebsd.org
 capo@the.secret.bsdconspiracy.net
 
 	wow regex humor... I'm a geek
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mikeh 
State-Changed-When: Mon Jul 16 16:36:08 PDT 2001 
State-Changed-Why:  
PR followup. 


Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: mikeh 
Responsible-Changed-When: Mon Jul 16 16:36:08 PDT 2001 
Responsible-Changed-Why:  
Misfiled. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28902 
>Unformatted:
