This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.
Holger Hans Peter Freyther holger at freyther.deDear Pablo, getaddrinfo does not work for the combination of AF_INET, SOCK_RAW and IPPROTO_GRE. I have attached an example application that can be compiled with: $ gcc -o fr fr.c `pkg-config --cflags --libs libosmocore libosmogb` this prints: getaddrinfo returned NULL: Success FAILED gettadrinfo returns -8 which should be this: # define EAI_SERVICE -8 /* SERVICE not supported for `ai_socktype'. */ I am not sure what is the most clever way to resolve this. Make SOCK_RAW branch out early and do the socket/bind(/listen) manually, use getaddrinfo twice with some more unspefici options, just deal with SOCK_RAW differently now? The attached code has the benefit of at least handling INET and INET6 inside the getaddrinfo result. any ideas? holger -------------- next part -------------- A non-text attachment was scrubbed... Name: fr.c Type: text/x-csrc Size: 461 bytes Desc: not available URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20121107/c9ceca0b/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: foo.diff Type: text/x-diff Size: 990 bytes Desc: not available URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20121107/c9ceca0b/attachment-0001.bin>