#21655: usock doesn't support IPv6 link local addresses
-----------------------+------------------------
 Reporter:  anonymous  |      Owner:  developers
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:
Component:  packages   |    Version:  Trunk
 Keywords:             |
-----------------------+------------------------
 usock() doesn't support IPv6 link local addresses.  The call to
 getaddrinfo in usock_inet passes in an addrinfo hints with ai_flags set to
 AI_ADDRCONFIG, which filters out IPv6 link local addresses.  This prevents
 logd from logging to IPv6 link local hosts.  Ideally, it should try the
 current method first and the the method without AI_ADDRCONFIG set.

 From usocket.c:
 {{{
 #!div style="font-size: 80%"
 Code highlighting:
   {{{#!c
   89         struct addrinfo hints = {
   90                 .ai_family = (type & USOCK_IPV6ONLY) ? AF_INET6 :
   91                         (type & USOCK_IPV4ONLY) ? AF_INET :
 AF_UNSPEC,
   92                 .ai_socktype = socktype,
   93                 .ai_flags = AI_ADDRCONFIG
   94                         | ((type & USOCK_SERVER) ? AI_PASSIVE : 0)
   95                         | ((type & USOCK_NUMERIC) ? AI_NUMERICHOST :
 0),
   96         };
   97         int sock = -1;  }}}
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/21655>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to