slirp: Factorizing and cleaning solookup()