firewall3: add fw3_attr_parse_name_type() function