summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ed/if_ed.c11
-rw-r--r--sys/i386/isa/if_ed.c11
2 files changed, 20 insertions, 2 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index c4ffdf8..d7c7a92 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -20,7 +20,7 @@
*/
/*
- * $Id: if_ed.c,v 1.28 1994/01/11 23:28:21 ats Exp $
+ * $Id: if_ed.c,v 1.29 1994/01/25 22:52:06 ats Exp $
*/
#include "ed.h"
@@ -1945,6 +1945,15 @@ ed_ioctl(ifp, command, data)
}
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 interface is marked down and it is running, then stop it
diff --git a/sys/i386/isa/if_ed.c b/sys/i386/isa/if_ed.c
index c4ffdf8..d7c7a92 100644
--- a/sys/i386/isa/if_ed.c
+++ b/sys/i386/isa/if_ed.c
@@ -20,7 +20,7 @@
*/
/*
- * $Id: if_ed.c,v 1.28 1994/01/11 23:28:21 ats Exp $
+ * $Id: if_ed.c,v 1.29 1994/01/25 22:52:06 ats Exp $
*/
#include "ed.h"
@@ -1945,6 +1945,15 @@ ed_ioctl(ifp, command, data)
}
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 interface is marked down and it is running, then stop it
OpenPOWER on IntegriCloud