MFC 1.20 by ambrisko:

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

PR:		bin/91399, bin/93727
Approved by:	re (scottl)
This commit is contained in:
glebius 2006-03-01 22:24:23 +00:00
parent 8f5b501262
commit 0f023eef98

View File

@ -240,6 +240,7 @@ setifmediacallback(int s, void *arg)
static int did_it = 0; static int did_it = 0;
if (!did_it) { if (!did_it) {
ifr.ifr_media = ifmr->ifm_current;
if (ioctl(s, SIOCSIFMEDIA, (caddr_t)&ifr) < 0) if (ioctl(s, SIOCSIFMEDIA, (caddr_t)&ifr) < 0)
err(1, "SIOCSIFMEDIA (media)"); err(1, "SIOCSIFMEDIA (media)");
free(ifmr->ifm_ulist); free(ifmr->ifm_ulist);