Bug 394

Summary: IP multicast not supported by ep driver
Product: Base System Reporter: widmer <widmer>
Component: i386Assignee: Justin T. Gibbs <gibbs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 2.0-RELEASE   
Hardware: Any   
OS: Any   

Description widmer 1995-05-11 14:10:01 UTC
	ep driver for 3c509 doesn't support IP multicast

Fix: 

The following diff to /usr/src/sys/i386/isa/if_ep.c

	*** 559,564 ****
	--- 559,565 ----
	      ifp->if_name = "ep";
	      ifp->if_mtu = ETHERMTU;
	      ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_NOTRAILERS;
	+     ifp->if_flags |= IFF_MULTICAST;
	      ifp->if_init = epinit;
	      ifp->if_output = ether_output;
	      ifp->if_start = epstart;
	***************
	*** 1336,1341 ****
	--- 1337,1363 ----
	                        ifp->if_mtu = ifr->ifr_mtu;
	                }
	                break;
	+
	+       case SIOCADDMULTI:
	+       case SIOCDELMULTI:
	+       /*
	+        * Update our multicast listeners
	+        */
	+       if (cmd == SIOCADDMULTI) {
	+           ether_addmulti(ifr, &sc->arpcom);
	+       } else {
	+           ether_delmulti(ifr, &sc->arpcom);
	+       }
	+
	+       if (error == ENETRESET) {
	+           /*
	+            * Multicast list has changed; set the
	+            * hardware filter accordingly
	+            */
	+           epreset(ifp->if_unit);
	+           error = 0;
	+       }
	+       break;

	        default:
	                error = EINVAL;
How-To-Repeat: 
	Try running sd using 3c509 gives error message

	IP_ADD_MEMBERSHIP: Can't assign requested address
Comment 1 Justin T. Gibbs freebsd_committer freebsd_triage 1996-02-26 02:01:06 UTC
State Changed
From-To: open->closed

This was fixed some time ago in -current.  The changes will be 
going into -stable shortly. 


Comment 2 Justin T. Gibbs freebsd_committer freebsd_triage 1996-02-26 02:01:06 UTC
Responsible Changed
From-To: freebsd-bugs->gibbs

I own these now, I guess.