Package: libnl3 / 3.4.0-1

debian/_nl_socket_generate_local_port_no_release.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Heiko Stuebner <heiko@sntech.de>
Date: Sun, 24 Jan 2016 00:32:55 +0100
Subject: [PATCH] Add _nl_socket_set_local_port_no_release stub

libnl commit eaa75b7c7d3e ("socket: fix assertion in nl_connect() when all
ports are already in use") removed _nl_socket_generate_local_port_no_release
in favor of a more flexible variant.

Readd a stub function to make our symbols happy
---

diff --git a/lib/socket.c b/lib/socket.c
index 109c416..bbf95c9 100644
--- a/lib/socket.c
+++ b/lib/socket.c
@@ -355,6 +355,11 @@ uint32_t _nl_socket_set_local_port_no_release(struct nl_sock *sk, int generate_o
 }
 /** \endcond */
 
+uint32_t _nl_socket_generate_local_port_no_release(struct nl_sock *sk)
+{
+	return _nl_socket_set_local_port_no_release(sk, 1);
+}
+
 /**
  * @name Source Idenficiation
  * @{