add get_prgname api in tutil; add auto detection on vlan in xcap