Grab the media from the passed in structure to put it into the

global structure.

PR:	bin/91399
Submitted by:	Spencer Minear
This commit is contained in:
Doug Ambrisko 2006-01-11 22:37:59 +00:00
parent 8b1292ac52
commit 1cc59a99c0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154240

View File

@ -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);