[sr-dev] [kamailio] ims_qos - rx_avp.c: rx_add_framed_ip_avp call to inet_pton with IPv6 fails due to [<ip>] format (#364)

dschaafsma notifications at github.com
Wed Oct 7 18:24:20 CEST 2015


This is an issue in 4.2, not sure about how 4.3+ currently handle this call path.
rx_add_framed_ip_avp() is called with an IP formatted as "[2001:db8::ff00:42:8329]"
This passes the INET6_ADDRSTRLEN check due to '::' compression, but inet_pton will fail to parse.

One possible hack/fix is:
 check for leading/trailing '[]' for V6 addrs and strip them prior to calling inet_pton


---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/364
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151007/b9d92c91/attachment.html>


More information about the sr-dev mailing list