From slr@lusty.acet.org  Fri Jun 16 07:49:42 1995
Received: from lusty.acet.org ([192.188.104.237])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id HAA18599
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 16 Jun 1995 07:49:41 -0700
Received: (from root@localhost) by lusty.acet.org (8.6.11/8.6.9) id KAA14783; Fri, 16 Jun 1995 10:49:40 -0400
Message-Id: <199506161449.KAA14783@lusty.acet.org>
Date: Fri, 16 Jun 1995 10:49:40 -0400
From: slr@mitre.org
Reply-To: slr@mitre.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: a fix for mrouted
X-Send-Pr-Version: 3.2

>Number:         524
>Category:       bin
>Synopsis:       mrouted won't accept prunes from another fbsd mrouter
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 16 07:50:00 1995
>Closed-Date:    Fri Jun 16 09:57:28 PDT 1995
>Last-Modified:
>Originator:     Soochon Radee
>Release:        FreeBSD 2.0-BUILT-19950616
>Organization:
MITRE 
>Environment:

	
Any system with the the recent multicast 3.5 port.

>Description:

	
Mrouted reads the prune timer from prune packets wrongly and will flood the
tunnel or link with multicast packets even after prunes are issued.

>How-To-Repeat:

	
Set up mrouted on any FreeBSD box so that it is upstream of another mrouter that
supports pruning. Fire up mrouted on both.

>Fix:
	
*** usr.sbin/mrouted/prune.c.old	Tue Jun 13 16:52:49 1995
--- usr.sbin/mrouted/prune.c	Fri Jun 16 10:03:12 1995
***************
*** 1212,1217 ****
--- 1212,1218 ----
  	((char *)&prun_grp)[i] = *p++;
      for (i = 0; i< 4; i++)
  	((char *)&prun_tmr)[i] = *p++;
+     prun_tmr = ntohl(prun_tmr);
      
      log(LOG_DEBUG, 0, "%s on vif %d prunes (%s %s)/%d",
  	inet_fmt(src, s1), vifi,

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wollman 
State-Changed-When: Fri Jun 16 09:57:28 PDT 1995 
State-Changed-Why:  
Suggested fix applied. 
>Unformatted:



