[OpenSIPS-Devel] [OpenSIPS/opensips] 40b6ce: core "net:" statistics: Fix an integer signedness ...

Liviu Chircu liviu at opensips.org
Thu Mar 30 06:56:12 EDT 2017


  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 40b6ce5314c49988c24167d647b1290b9f4f8b1b
      https://github.com/OpenSIPS/opensips/commit/40b6ce5314c49988c24167d647b1290b9f4f8b1b
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2017-03-30 (Thu, 30 Mar 2017)

  Changed paths:
    M socket_info.c
    M socket_info.h

  Log Message:
  -----------
  core "net:" statistics: Fix an integer signedness bug

Due to runaway usage of bitwise shifting, the byte matching code would fail to
work for interfaces having low order bytes with greater values than 128
(e.g. udp:31.32.33.147:5060). Consequently, all "net:" statistics for them
would show up as zeroes.

Thanks to Bogdan and Răzvan for discovering and troubleshooting

(cherry picked from commit 009691c6c7672927f68cfb8a0340166167a04107)




More information about the Devel mailing list