[SR-Users] listening at link local IPv6 address
Joel Serrano
joel at textplus.com
Mon Apr 22 02:33:59 CEST 2019
And you could also try with “::” as IPv6? I wonder if that would catch the
link-local?
On Sun, Apr 21, 2019 at 15:33 David Villasmil <
david.villasmil.work at gmail.com> wrote:
> Also, quick question: if you don’t actively set a listening address,
> kamailio listens on all. If you do that, does it bind to the ipv6b
>
> On Sun, 21 Apr 2019 at 20:33, Juha Heinanen <jh at tutpro.com> wrote:
>
>> Digging a bit more into this, it appears that in case of link local ipv6
>> address. also sin6_scope_id of sockaddr_in6 needs to be set:
>>
>> struct sockaddr_in6
>> {
>> __SOCKADDR_COMMON (sin6_);
>> in_port_t sin6_port; /* Transport layer port # */
>> uint32_t sin6_flowinfo; /* IPv6 flow information */
>> struct in6_addr sin6_addr; /* IPv6 address */
>> uint32_t sin6_scope_id; /* IPv6 scope-id */
>> };
>>
>> and there is function if_nametoindex() in <net/if.h> that can be used to
>> convert interface name (in my case wlp1s0) into the scope id.
>>
>> -- Juha
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> --
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com
> phone: +34669448337
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190421/4377bbef/attachment.html>
More information about the sr-users
mailing list