]> granicus.if.org Git - libnl/commitdiff
socket: Warn via debug message if local port namespace is exhausted
authorThomas Graf <tgraf@suug.ch>
Fri, 28 Jun 2013 16:53:16 +0000 (18:53 +0200)
committerThomas Graf <tgraf@suug.ch>
Fri, 28 Jun 2013 16:53:16 +0000 (18:53 +0200)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
lib/socket.c

index 1ca7783972f6d1d6fb2876dd23d8c11614db24f2..00d8d6afba772c2579b6424995b821498d557bd0 100644 (file)
@@ -89,6 +89,7 @@ static uint32_t generate_local_port(void)
        nl_write_unlock(&port_map_lock);
 
        /* Out of sockets in our own PID namespace, what to do? FIXME */
+       NL_DBG(1, "Warning: Ran out of unique local port namespace\n");
        return UINT_MAX;
 }