add ip v6 length check.