Skip to content

Commit

Permalink
modules/ims_usrloc_pcscf: add slot id to storage
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybeepee committed Feb 3, 2015
1 parent aa4c310 commit 9e25ba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/ims_usrloc_pcscf/udomain.c
Expand Up @@ -229,6 +229,7 @@ int mem_insert_pcontact(struct udomain* _d, str* _contact, struct pcontact_info*
}

sl = ((*_c)->aorhash) & (_d->size - 1);
(*_c)->sl = sl;
slot_add(&_d->table[sl], *_c);
update_stat(_d->contacts, 1);
return 0;
Expand Down
1 change: 1 addition & 0 deletions modules/ims_usrloc_pcscf/usrloc.h
Expand Up @@ -185,6 +185,7 @@ typedef struct pcontact_info {
*/
typedef struct pcontact {
unsigned int aorhash; /*!< Hash over address of record */
unsigned int sl; /*!< slot number */
struct hslot* slot; /*!< Collision slot in the hash table array we belong to */
str* domain; /*!< Pointer to domain we belong to (null terminated string) */
str aor; /*!< Address of record */
Expand Down

0 comments on commit 9e25ba7

Please sign in to comment.