[OpenSIPS-Devel] [OpenSIPS/opensips] 7bb8fc: Fix logging multiple IPs in the same time

Bogdan Andrei IANCU noreply at github.com
Wed May 3 12:02:11 UTC 2023


  Branch: refs/heads/3.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 7bb8fc976cd72a91c40cac41ddc39c962ea620fc
      https://github.com/OpenSIPS/opensips/commit/7bb8fc976cd72a91c40cac41ddc39c962ea620fc
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2023-05-03 (Wed, 03 May 2023)

  Changed paths:
    M ip_addr.c
    M ip_addr.h

  Log Message:
  -----------
  Fix logging multiple IPs in the same time

Use a multiple static rotating buffers for convering the IPs to str, so that we can print multiple IPs in the same time.
Closes #3062
Reported by @jes

(cherry picked from commit 0ff82562bd74a177184b1e179c3a607446c47b78)


  Commit: 2b832b3b074e5173e6d83fd03ad6cba335ee1f5f
      https://github.com/OpenSIPS/opensips/commit/2b832b3b074e5173e6d83fd03ad6cba335ee1f5f
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2023-05-03 (Wed, 03 May 2023)

  Changed paths:
    M modules/acc/acc_extra.c

  Log Message:
  -----------
  [acc] workaround for compiling issue

Related to 0ff82562bd74a177184b1e179c3a607446c47b78
We need to review this logic (of static_detector) as it looks to be broken as it is now.

(cherry picked from commit 6c0b37f907d30749266e2deca3c9ccc475dd32e4)


  Commit: 308d17e5297e19c252e4b99a90cd27fb1010af1a
      https://github.com/OpenSIPS/opensips/commit/308d17e5297e19c252e4b99a90cd27fb1010af1a
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2023-05-03 (Wed, 03 May 2023)

  Changed paths:
    M modules/acc/acc_extra.c
    M modules/acc/acc_extra.h
    M modules/acc/acc_mod.c

  Log Message:
  -----------
  [acc] removed old workaround multiple int2str() in acc_extra

Since 2.3 we actually do not need this, as each acc_extra is individually set into its own buffer.
Related to 6c0b37f907d30749266e2deca3c9ccc475dd32e4

(cherry picked from commit 54b03a17276439a24a81d7f55e6d43c92f22637e)


Compare: https://github.com/OpenSIPS/opensips/compare/b21f9208b03e...308d17e5297e



More information about the Devel mailing list