diff options
author | guido <guido@FreeBSD.org> | 1995-08-28 12:01:17 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 1995-08-28 12:01:17 +0000 |
commit | 8839bf6e3658c41092f5832d8a692c162981078e (patch) | |
tree | 7b6b40d7fde5a68e09eb2e921fef99a04ce97d53 /sys/dev/ep | |
parent | 4f9c80c674a7963b84dd6c6174ead36951e9af3c (diff) | |
download | FreeBSD-src-8839bf6e3658c41092f5832d8a692c162981078e.zip FreeBSD-src-8839bf6e3658c41092f5832d8a692c162981078e.tar.gz |
Add SIOCGIFADDR ioctl so rarpd actually works with the if_ep interface.
Diffstat (limited to 'sys/dev/ep')
-rw-r--r-- | sys/dev/ep/if_ep.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c index 5e249de..bd38253 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; |