From 9622a8659a800e4390abc4a6f06537dd84c65c9e Mon Sep 17 00:00:00 2001 From: ambrisko Date: Wed, 11 Jan 2006 22:37:59 +0000 Subject: Grab the media from the passed in structure to put it into the global structure. PR: bin/91399 Submitted by: Spencer Minear --- sbin/ifconfig/ifmedia.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sbin') diff --git a/sbin/ifconfig/ifmedia.c b/sbin/ifconfig/ifmedia.c index 780a16f..4f49bde 100644 --- a/sbin/ifconfig/ifmedia.c +++ b/sbin/ifconfig/ifmedia.c @@ -240,6 +240,7 @@ setifmediacallback(int s, void *arg) static int did_it = 0; if (!did_it) { + ifr.ifr_media = ifmr->ifm_current; if (ioctl(s, SIOCSIFMEDIA, (caddr_t)&ifr) < 0) err(1, "SIOCSIFMEDIA (media)"); free(ifmr->ifm_ulist); -- cgit v1.1