[SR-Users] listening at link local IPv6 address

David Villasmil david.villasmil.work at gmail.com
Mon Apr 22 00:32:11 CEST 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190421/e5f2330c/attachment.html>


More information about the sr-users mailing list