Parsing and primary interface detection