[OpenSIPS-Devel] [OpenSIPS/opensips] 0f10e2: lump processing: correct the handling of DEL lumps...

Liviu Chircu liviu at opensips.org
Wed May 7 13:06:38 CEST 2014


  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 0f10e2fdb9713ebd27337f948f71ae59b1f890f5
      https://github.com/OpenSIPS/opensips/commit/0f10e2fdb9713ebd27337f948f71ae59b1f890f5
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2014-05-07 (Wed, 07 May 2014)

  Changed paths:
    M msg_translator.c

  Log Message:
  -----------
  lump processing: correct the handling of DEL lumps with identical offsets

	* for this corner case, only add the _delta_ lengths instead
(cherry picked from commit f9d9654e6df6c801f19f774e3960a8d6f806a1ca)


  Commit: a1317bceae485266cd7c0bf97296425a3182b4fc
      https://github.com/OpenSIPS/opensips/commit/a1317bceae485266cd7c0bf97296425a3182b4fc
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2014-05-07 (Wed, 07 May 2014)

  Changed paths:
    M msg_translator.c

  Log Message:
  -----------
  lumps processing: a couple of performance optimizations

Since we can only have LUMP_DEL or LUMP_NOP along the main lump chain,
reordering the switch statements will improve code performance.

This patch also enhances code readability and improves error reporting.
(cherry picked from commit 6f83e15bba66ca1d1f1437fb5afb1ad25a49c430)


Compare: https://github.com/OpenSIPS/opensips/compare/cb0751280c0c...a1317bceae48


More information about the Devel mailing list