nmport_parse
int nmport_parse(struct nmport_d *d, const char *portspec);
if (nmport_parse(d, ifname) < 0)