if_name2unit
static int if_name2unit(const char *, int *);
if ((err = if_name2unit(name, &unit)) != 0)