/* Compare the address 1 and port 1 in the two conversation keys. We don't check both directions of the conversation - the routine doing the hash lookup has to do two searches, as the hash key will be different for the two directions.  */
static gint conversation_match_no_addr2_or_port2(gconstpointer v, gconstpointer w)
/* Compare the address 1 and port 1 in the two conversation keys. We don't check both directions of the conversation - the routine doing the hash lookup has to do two searches, as the hash key will be different for the two directions.  */
static gint conversation_match_no_addr2_or_port2(gconstpointer v, gconstpointer w)
{
	const conversation_key *v1 = (const conversation_key *)v;
	const conversation_key *v2 = (const conversation_key *)w;
	if (v1->ptype != v2->ptype)
		return 0;
	if (v1->port1 == v2->port1 &&
	    addresses_equal(&v1->addr1, &v2->addr1)) {
		return 1;
	}
	return 0;
}