Use netstat on sunos: fixups

Make it DRYer, should no longer fail lint.