[OpenSIPS-Devel] [OpenSIPS/opensips] f03ea6: permissions: Rewrite the in-memory storage backend

Liviu Chircu noreply at github.com
Mon Mar 3 16:10:35 UTC 2025


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f03ea63bd32aca1eeaaef42f35086e7418a0360e
      https://github.com/OpenSIPS/opensips/commit/f03ea63bd32aca1eeaaef42f35086e7418a0360e
  Author: Bence Szigeti <bence.szigeti at gohyda.com>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

  Changed paths:
    M modules/permissions/address.c
    M modules/permissions/hash.c
    M modules/permissions/hash.h
    A modules/permissions/hash_table.c
    A modules/permissions/hash_table.h
    M modules/permissions/mi.c
    M modules/permissions/partitions.h
    A modules/permissions/subnet_prefix_tree.c
    A modules/permissions/subnet_prefix_tree.h

  Log Message:
  -----------
  permissions: Rewrite the in-memory storage backend


  Commit: cf12173b00a4f639cffcdaff29a614b812fde6e0
      https://github.com/OpenSIPS/opensips/commit/cf12173b00a4f639cffcdaff29a614b812fde6e0
  Author: Bence Szigeti <bence.szigeti at gohyda.com>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

  Changed paths:
    M modules/permissions/hash.c
    M modules/permissions/hash.h

  Log Message:
  -----------
  permissions: Use linked list for group storage

If an address/subnet is defined in multiple groups, `get_source_group`
may return a different group than it did previously.  Previously, it
returned the group with the lowest group ID where the match occurred
(due to how the data was stored).  Therefore, I am using a linked list
for groups instead of a hash table, so we do not have to look up every
group to find the smallest group ID.  This change is necessary for
backward compatibility.


  Commit: accc2322e8d87fca11090c440a6c3e67fbdc91f7
      https://github.com/OpenSIPS/opensips/commit/accc2322e8d87fca11090c440a6c3e67fbdc91f7
  Author: Bence Szigeti <bence.szigeti at gohyda.com>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

  Changed paths:
    M modules/permissions/hash_table.h

  Log Message:
  -----------
  permissions: Adjust the bucket grow factor to match the hash algo


  Commit: 20c70e7c86c62498e0c4a010e80e3791d1e3b876
      https://github.com/OpenSIPS/opensips/commit/20c70e7c86c62498e0c4a010e80e3791d1e3b876
  Author: Bence Szigeti <bence.szigeti at gohyda.com>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

  Changed paths:
    M modules/permissions/hash.c
    M modules/permissions/hash.h

  Log Message:
  -----------
  permissions: Reduce memory allocation


  Commit: 8a98fbea100699667d02d7e5899d11c4c133911a
      https://github.com/OpenSIPS/opensips/commit/8a98fbea100699667d02d7e5899d11c4c133911a
  Author: Bence Szigeti <bence.szigeti at gohyda.com>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

  Changed paths:
    M modules/permissions/hash_table.c
    M modules/permissions/hash_table.h
    M modules/permissions/subnet_prefix_tree.c
    M modules/permissions/subnet_prefix_tree.h

  Log Message:
  -----------
  permissions: Add license headers


  Commit: 2a1cf22d648240737bb762d4ea9a310cb8b77713
      https://github.com/OpenSIPS/opensips/commit/2a1cf22d648240737bb762d4ea9a310cb8b77713
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2025-03-03 (Mon, 03 Mar 2025)

  Changed paths:
    M modules/permissions/address.c
    M modules/permissions/hash.c
    M modules/permissions/hash.h
    A modules/permissions/hash_table.c
    A modules/permissions/hash_table.h
    M modules/permissions/mi.c
    M modules/permissions/partitions.h
    A modules/permissions/subnet_prefix_tree.c
    A modules/permissions/subnet_prefix_tree.h

  Log Message:
  -----------
  Merge pull request #3560 from purecloudlabs/TELECOM-10654_master

permissions: Rewrite the in-memory storage backend


Compare: https://github.com/OpenSIPS/opensips/compare/b868e00a2021...2a1cf22d6482

To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list