Add SIOCGIFADDR ioctl so rarpd actually works with the if_ep interface.

This commit is contained in:
Guido van Rooij 1995-08-28 12:01:17 +00:00
parent 92f6a19170
commit de319b9419
2 changed files with 20 additions and 2 deletions

View File

@ -38,7 +38,7 @@
*/
/*
* $Id: if_ep.c,v 1.28 1995/05/30 08:02:07 rgrimes Exp $
* $Id: if_ep.c,v 1.29 1995/07/05 07:21:34 davidg Exp $
*
* Promiscuous mode added and interrupt logic slightly changed
* to reduce the number of adapter failures. Transceiver select
@ -1164,6 +1164,15 @@ epioctl(ifp, cmd, data)
break;
}
break;
case SIOCGIFADDR:
{
struct sockaddr *sa;
sa = (struct sockaddr *) & ifr->ifr_data;
bcopy((caddr_t) sc->arpcom.ac_enaddr,
(caddr_t) sa->sa_data, ETHER_ADDR_LEN);
}
break;
case SIOCSIFFLAGS:
if ((ifp->if_flags & IFF_UP) == 0 && ifp->if_flags & IFF_RUNNING) {
ifp->if_flags &= ~IFF_RUNNING;

View File

@ -38,7 +38,7 @@
*/
/*
* $Id: if_ep.c,v 1.28 1995/05/30 08:02:07 rgrimes Exp $
* $Id: if_ep.c,v 1.29 1995/07/05 07:21:34 davidg Exp $
*
* Promiscuous mode added and interrupt logic slightly changed
* to reduce the number of adapter failures. Transceiver select
@ -1164,6 +1164,15 @@ epioctl(ifp, cmd, data)
break;
}
break;
case SIOCGIFADDR:
{
struct sockaddr *sa;
sa = (struct sockaddr *) & ifr->ifr_data;
bcopy((caddr_t) sc->arpcom.ac_enaddr,
(caddr_t) sa->sa_data, ETHER_ADDR_LEN);
}
break;
case SIOCSIFFLAGS:
if ((ifp->if_flags & IFF_UP) == 0 && ifp->if_flags & IFF_RUNNING) {
ifp->if_flags &= ~IFF_RUNNING;