datapath-windows/ovsext/Conntrack-nat.c
/*
 *----------------------------------------------------------------------------
 * OvsNatAddEntry
 *     Add an entry to the NAT table. Also updates the reverse NAT lookup
 *     table.
 *----------------------------------------------------------------------------
 */
OvsNatAddEntry
Add an entry to the NAT table. Also updates the reverse NAT lookup
table.
OvsNatAddEntry Add an entry to the NAT table . Also updates the reverse NAT lookup table .
VOID
OvsNatAddEntry(OVS_NAT_ENTRY* entry)
{
    NdisAcquireSpinLock(&ovsCtNatLock);
    InsertHeadList(OvsNatGetBucket(&entry->key, FALSE),
                   &entry->link);
    InsertHeadList(OvsNatGetBucket(&entry->value, TRUE),
                   &entry->reverseLink);
    NdisReleaseSpinLock(&ovsCtNatLock);
    NdisInterlockedIncrement((PLONG)&ovsNatEntries);
}
VOID OvsNatAddEntry ( OVS_NAT_ENTRY * entry ) { NdisAcquireSpinLock ( & ovsCtNatLock ) ; InsertHeadList ( OvsNatGetBucket ( & entry -> key , FALSE ) , & entry -> link ) ; InsertHeadList ( OvsNatGetBucket ( & entry -> value , TRUE ) , & entry -> reverseLink ) ; NdisReleaseSpinLock ( & ovsCtNatLock ) ; NdisInterlockedIncrement ( ( PLONG ) & ovsNatEntries ) ; }
OvsNatAddEntry
     Add an entry to the NAT table.
OvsNatAddEntry Add an entry to the NAT table .