Bug 394 - IP multicast not supported by ep driver
Summary: IP multicast not supported by ep driver
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: i386 (show other bugs)
Version: 2.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Justin T. Gibbs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1995-05-11 14:10 UTC by widmer
Modified: 1996-02-26 02:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.