[sr-dev] git:master:e93640e6: core: listen can now have a "virtual" flag to check for nonlocal floating IPs.

Daniel-Constantin Mierla miconda at gmail.com
Fri Jan 7 12:27:29 CET 2022


Module: kamailio
Branch: master
Commit: e93640e6119e61a24d8c1f6d36b60c83b3573f90
URL: https://github.com/kamailio/kamailio/commit/e93640e6119e61a24d8c1f6d36b60c83b3573f90

Author: Rhys Hanrahan <rhys at nexusone.com.au>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-01-07T12:27:25+01:00

core: listen can now have a "virtual" flag to check for nonlocal floating IPs.

A new option to "listen" has been added called "virtual". This sets a flag on the listening socket to modify the behaviour of grep_sock_info.
When this flag is set, grep_sock_info will only consider the listening IP a match if the IP is found in the system's current list of
local IP addresses. If the IP is not currently local, then the matching IP is ignored.
If the virtual flag is not set on the socket then existing behaviour used instead.

This is useful in scenarios with an active/active cluster where Kamailio must know if a floating IP is currently local or not.

---

Modified: src/core/cfg.lex
Modified: src/core/cfg.y
Modified: src/core/ip_addr.h
Modified: src/core/socket_info.c

---

Diff:  https://github.com/kamailio/kamailio/commit/e93640e6119e61a24d8c1f6d36b60c83b3573f90.diff
Patch: https://github.com/kamailio/kamailio/commit/e93640e6119e61a24d8c1f6d36b60c83b3573f90.patch




More information about the sr-dev mailing list