intel / liblwm2m

liblwm2m is an implementation of the LWM2M protocol from the Open Mobile Alliance.
BSD 3-Clause "New" or "Revised" License
44 stars 28 forks source link

make lwm2mclient more non-IPv6 friendly #27

Closed kartben closed 10 years ago

kartben commented 10 years ago

when using the lwm2mclient on a machine with no ipv6 support, it fails because it tries to get an IPv6 udp socket on port 5683

dnav commented 10 years ago

I'm about to commit a complete rework of this part. Stay tuned.

jvermillard commented 10 years ago

good to know, because I was pushing a commit for fixing the segfault when you did it ;) BTW reading this code, I found getaddrinfo() is not tested for error code

dnav commented 10 years ago

Just changed the connection handling in test client and server. No more IPV6. This was tested on x64 Fedora, Debian and ia32 Ubuntu.

(I will add a TODO file to track planned changes)