Module: kamailio
Branch: master
Commit: 597bef35c74dd3beea693562f45d17e648fd5f6d
URL:
https://github.com/kamailio/kamailio/commit/597bef35c74dd3beea693562f45d17e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-04-01T11:06:47+02:00
Merge pull request #558 from schoberw/patch-2
core: skip address family AF_PACKET on -l iface_name
---
Modified: socket_info.c
---
Diff:
https://github.com/kamailio/kamailio/commit/597bef35c74dd3beea693562f45d17e…
Patch:
https://github.com/kamailio/kamailio/commit/597bef35c74dd3beea693562f45d17e…
---
diff --git a/socket_info.c b/socket_info.c
index d06fdcf..1d28977 100644
--- a/socket_info.c
+++ b/socket_info.c
@@ -1205,6 +1205,9 @@ int add_interfaces(char* if_name, int family, unsigned short port,
for (ifa = ifap; ifa; ifa = ifa->ifa_next)
{
+ /* skip AF_PACKET addr family since it is of no use later on */
+ if (ifa->ifa_addr->sa_family == AF_PACKET)
+ continue;
if (if_name && strcmp(if_name, ifa->ifa_name))
continue;
if (family && family != ifa->ifa_addr->sa_family)