Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jun 1995 12:50:01 -0700
From:      mpp@legarto.minn.net
To:        freebsd-bugs
Subject:   kern/478: Multicast not supported on PPP interfaces
Message-ID:  <199506021950.MAA03466@freefall.cdrom.com>
In-Reply-To: Your message of Fri, 2 Jun 1995 14:44:13 -0500 <199506021944.OAA00418@mpp.com>

next in thread | previous in thread | raw e-mail | index | archive | help

>Number:         478
>Category:       kern
>Synopsis:       Multicast not supported on PPP interfaces
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun  2 12:50:00 1995
>Originator:     Mike Pritchard
>Organization:
>Release:        FreeBSD BUILT-19950525 i386
>Environment:

FreeBSD-current

>Description:

Multicast is not supported on PPP interfaces.  It looks like 
someone goofed when they checked in revision 1.4 of sys/net/if_ppp.c,
since it deleted the changes made in revision 1.3 to add the
multicast stuff.

>How-To-Repeat:

Run "ifconfig ppp0" and note that MULTICAST doesn't appear
as one of the flags.


>Fix:
	
Here is a patch that re-adds the multicast stuff that was previosly
in revision 1.3 of if_ppp.c.  I think this is all that is needed,
but someone who knows more about this stuff should double
check and make sure.

*** orig/if_ppp.c	Fri Jun  2 12:52:30 1995
--- if_ppp.c	Fri Jun  2 14:09:12 1995
***************
*** 200,206 ****
  	sc->sc_if.if_name = "ppp";
  	sc->sc_if.if_unit = i++;
  	sc->sc_if.if_mtu = PPP_MTU;
! 	sc->sc_if.if_flags = IFF_POINTOPOINT;
  	sc->sc_if.if_type = IFT_PPP;
  	sc->sc_if.if_hdrlen = PPP_HDRLEN;
  	sc->sc_if.if_ioctl = pppioctl;
--- 200,206 ----
  	sc->sc_if.if_name = "ppp";
  	sc->sc_if.if_unit = i++;
  	sc->sc_if.if_mtu = PPP_MTU;
! 	sc->sc_if.if_flags = IFF_POINTOPOINT | IFF_MULTICAST;
  	sc->sc_if.if_type = IFT_PPP;
  	sc->sc_if.if_hdrlen = PPP_HDRLEN;
  	sc->sc_if.if_ioctl = pppioctl;
***************
*** 1525,1530 ****
--- 1525,1542 ----
  
      case SIOCGIFMTU:
  	ifr->ifr_mtu = sc->sc_if.if_mtu;
+ 	break;
+     case SIOCADDMULTI:
+     case SIOCDELMULTI:
+ 	switch(ifr->ifr_addr.sa_family) {
+ #ifdef INET
+ 	case AF_INET:
+ 		break;
+ #endif
+ 	default:
+ 		error = EAFNOSUPPORT;
+ 		break;
+ 	}
  	break;
  
      default:
>Audit-Trail:
>Unformatted:





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506021950.MAA03466>