summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pccard/pccardd
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2000-05-04 15:38:18 +0000
committeriwasaki <iwasaki@FreeBSD.org>2000-05-04 15:38:18 +0000
commit4a077665a2ac3032dd507db13428d81021c3d4b6 (patch)
tree890aa50c3fb02139e72ba90ef6de2cc33db300e7 /usr.sbin/pccard/pccardd
parentcb5fd90ad47ea643a92baafe8b90afbd751e42bb (diff)
downloadFreeBSD-src-4a077665a2ac3032dd507db13428d81021c3d4b6.zip
FreeBSD-src-4a077665a2ac3032dd507db13428d81021c3d4b6.tar.gz
Add ioctl() in read_ether() so that pccardd ensure reading its ether
address from the attribute memory area.
Diffstat (limited to 'usr.sbin/pccard/pccardd')
-rw-r--r--usr.sbin/pccard/pccardd/cardd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c
index 769785d..c7dedac 100644
--- a/usr.sbin/pccard/pccardd/cardd.c
+++ b/usr.sbin/pccard/pccardd/cardd.c
@@ -318,7 +318,9 @@ static void
read_ether(struct slot *sp)
{
unsigned char net_addr[12];
+ int flags = MDF_ATTR; /* attribute memory */
+ ioctl(sp->fd, PIOCRWFLAG, &flags);
lseek(sp->fd, (off_t)sp->card->ether->value, SEEK_SET);
if (read(sp->fd, net_addr, sizeof(net_addr)) != sizeof(net_addr)) {
logerr("read err on net addr");
OpenPOWER on IntegriCloud