diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-12-19 12:58:15 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-12-19 12:58:15 +0000 |
commit | b71c763454b095579cac6de4a013f00b8ee8809e (patch) | |
tree | 22d84e8cb7435d272cadbe31ccc1a55a49870b20 /sys | |
parent | dc2684d5215ae8fba5f04cb69d3cad36ff9a3097 (diff) |
do SIOCGIFADDR
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_ethersubr.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 928330183a8..37351c327bd 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ethersubr.c,v 1.14 1996/12/19 10:59:21 mickey Exp $ */ +/* $OpenBSD: if_ethersubr.c,v 1.15 1996/12/19 12:58:14 mickey Exp $ */ /* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */ /* @@ -103,6 +103,7 @@ ether_ioctl(ifp, arp, cmd, data) caddr_t data; { struct ifaddr *ifa = (struct ifaddr *)data; + struct ifreq *ifr = (struct ifreq *) data; int error = 0; switch (cmd) { @@ -148,6 +149,12 @@ ether_ioctl(ifp, arp, cmd, data) } break; + case SIOCGIFADDR: + bcopy((caddr_t) arp->ac_enaddr, + (caddr_t) ((struct sockaddr *)&ifr->ifr_data)->sa_data, + ETHER_ADDR_LEN); + break; + default: break; } |