get_media_mode
mode = get_media_mode(IFM_TYPE(ifmr->ifm_ulist[0]), val);
static int get_media_mode(int, const char *);