[sr-dev] git:master:e5983e4c: core: skip link local interfaces in auto-discovery only if bind_ipv6_link_local=0

Daniel-Constantin Mierla miconda at gmail.com
Tue Apr 30 09:49:35 CEST 2019


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-04-30T09:24:02+02:00

core: skip link local interfaces in auto-discovery only if bind_ipv6_link_local=0

---

Modified: src/core/socket_info.c

---

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

---

diff --git a/src/core/socket_info.c b/src/core/socket_info.c
index 4ed7b56487..472be175c0 100644
--- a/src/core/socket_info.c
+++ b/src/core/socket_info.c
@@ -1187,8 +1187,11 @@ static int build_iface_list(void)
 				}
 			}
 			if(is_link_local) {
-				pkg_free(entry);
-				continue;    /* link local addresses are not bindable */
+				if(sr_bind_ipv6_link_local==0) {
+					/* skip - link local addresses are not bindable without scope */
+					pkg_free(entry);
+					continue;
+				}
 			}
 
 			if(strlen(ifaces[index].name)==0)




More information about the sr-dev mailing list