priv_getiftype
if (priv_getiftype(s, ifname, &unit) == -1 ||
if (priv_getiftype($2, vsw_type, NULL) == -1 ||
(priv_getiftype($3, type, NULL) == -1 ||
if (priv_getiftype(vfr.vfr_name, type, NULL) == -1 ||
if (priv_getiftype(vfr.vfr_value, type, NULL) == -1)
int priv_getiftype(char *, char *, unsigned int *);