Add missing ifr variable declaration that I forgot when adding MTU

ioctl support.
This commit is contained in:
David Greenman 1994-08-12 06:06:19 +00:00
parent f66e339c33
commit 6979fee553
2 changed files with 8 additions and 6 deletions

View File

@ -39,7 +39,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ie.c,v 1.6 1994/05/27 04:02:04 rgrimes Exp $
* $Id: if_ie.c,v 1.7 1994/08/08 13:33:15 davidg Exp $
*/
/*
@ -1663,6 +1663,7 @@ ieioctl(ifp, command, data)
{
struct ifaddr *ifa = (struct ifaddr *)data;
struct ie_softc *ie = &ie_softc[ifp->if_unit];
struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
s = splimp();
@ -1738,8 +1739,8 @@ ieioctl(ifp, command, data)
* Update multicast listeners
*/
error = ((command == SIOCADDMULTI)
? ether_addmulti((struct ifreq *)data, &ie->arpcom)
: ether_delmulti((struct ifreq *)data, &ie->arpcom));
? ether_addmulti(ifr, &ie->arpcom)
: ether_delmulti(ifr, &ie->arpcom));
if(error == ENETRESET) {
/* reset multicast filtering */

View File

@ -39,7 +39,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ie.c,v 1.6 1994/05/27 04:02:04 rgrimes Exp $
* $Id: if_ie.c,v 1.7 1994/08/08 13:33:15 davidg Exp $
*/
/*
@ -1663,6 +1663,7 @@ ieioctl(ifp, command, data)
{
struct ifaddr *ifa = (struct ifaddr *)data;
struct ie_softc *ie = &ie_softc[ifp->if_unit];
struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
s = splimp();
@ -1738,8 +1739,8 @@ ieioctl(ifp, command, data)
* Update multicast listeners
*/
error = ((command == SIOCADDMULTI)
? ether_addmulti((struct ifreq *)data, &ie->arpcom)
: ether_delmulti((struct ifreq *)data, &ie->arpcom));
? ether_addmulti(ifr, &ie->arpcom)
: ether_delmulti(ifr, &ie->arpcom));
if(error == ENETRESET) {
/* reset multicast filtering */