I pushed a patch to compare ips using parsed structure. Initial version was using string comparison, which is not safe for ipv6, but I was looking for a quick proof of a solution.
The role of this ip comparison is to figure out what is the interface name for which to get scope id. So we get the ifname by walking all of the network interfaces and seeing which one has the respective ip assigned to it.
Can you try and see if now works better?
Cheers, Daniel
On 23.04.19 20:14, Juha Heinanen wrote:
Juha Heinanen writes:
It would be better to use the name of the interface (in above wlp1s0) with call if_nametoindex(ifname). Is the name available?
In baresip ifname is available and I can use the if_nametoindex() call. I don't know where it got the name,
-- Juha