datapath-windows/ovsext/Conntrack-nat.c
/*
 *----------------------------------------------------------------------------
 * OvsNatHashRange
 *     Compute hash for a range of addresses specified in natInfo.
 *----------------------------------------------------------------------------
 */
OvsNatHashRange
Compute hash for a range of addresses specified in natInfo.
OvsNatHashRange Compute hash for a range of addresses specified in natInfo .
static UINT32 OvsNatHashRange(const OVS_CT_ENTRY *entry, UINT32 basis)
{
    UINT32 hash = basis;
#define HASH_ADD(field) \
    hash = OvsJhashBytes(&field, sizeof(field), hash)
    HASH_ADD(entry->natInfo.minAddr);
    HASH_ADD(entry->natInfo.maxAddr);
    HASH_ADD(entry->key.dl_type);
    HASH_ADD(entry->key.nw_proto);
    HASH_ADD(entry->key.zone);
#undef HASH_ADD
    return hash;
}
static UINT32 OvsNatHashRange ( const OVS_CT_ENTRY * entry , UINT32 basis ) { UINT32 hash = basis ; #define HASH_ADD ( field )  \
    hash = OvsJhashBytes(&field, sizeof(field), hash) HASH_ADD ( entry -> natInfo . minAddr ) ; HASH_ADD ( entry -> natInfo . maxAddr ) ; HASH_ADD ( entry -> key . dl_type ) ; HASH_ADD ( entry -> key . nw_proto ) ; HASH_ADD ( entry -> key . zone ) ; #undef  HASH_ADD return hash ; }
OvsNatHashRange
     Compute hash for a range of addresses specified in natInfo.
OvsNatHashRange Compute hash for a range of addresses specified in natInfo .