summaryrefslogtreecommitdiffstats
path: root/libnl.sym.in
Commit message (Collapse)AuthorAgeFilesLines
* lib/socket: retry generate local port in nl_connect on ADDRINUSEThomas Haller2014-05-061-0/+5
| | | | | | | | | | | | | | | | | | | | | It can easily happen that the generated local netlink port is alrady in use. In that case bind will fail with ADDRINUSE. Users of libnl3 could workaround this, by managing the local ports themselves, but sometimes these users are libraries too and they also don't know which ports might be used by other components. This patch changes that nl_socket_alloc() no longer initilizes the local port id immediately. Instead it will be initialized when the user calls nl_socket_get_local_port() the first time and thereby shows interest in the value. If bind() fails with ADDRINUSE, check if the user ever cared about the local port, i.e. whether the local port is still unset. If it is still unset, assume that libnl should choose a suitable port and retry until an unused port can be found. Signed-off-by: Thomas Haller <thaller@redhat.com>
* Enable linker versioningThomas Graf2013-08-071-0/+4
Reported-by: Ian Stakenvicius Signed-off-by: Thomas Graf <tgraf@suug.ch>