diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c index 5e249de062d8..bd382537085a 100644 --- a/sys/dev/ep/if_ep.c +++ b/sys/dev/ep/if_ep.c @@ -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; diff --git a/sys/i386/isa/if_ep.c b/sys/i386/isa/if_ep.c index 5e249de062d8..bd382537085a 100644 --- a/sys/i386/isa/if_ep.c +++ b/sys/i386/isa/if_ep.c @@ -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;