[Pkg-voip-commits] r2213 - in yate/trunk/debian: . patches
Mikael Magnusson
mikma-guest at costa.debian.org
Thu Aug 10 15:40:33 UTC 2006
Author: mikma-guest
Date: 2006-08-10 15:40:32 +0000 (Thu, 10 Aug 2006)
New Revision: 2213
Added:
yate/trunk/debian/patches/extmodule_reuseaddr.dpatch
Modified:
yate/trunk/debian/changelog
yate/trunk/debian/patches/00list
Log:
* Patch: enable reuse of local socket addresses in extmodule
Modified: yate/trunk/debian/changelog
===================================================================
--- yate/trunk/debian/changelog 2006-08-10 15:38:42 UTC (rev 2212)
+++ yate/trunk/debian/changelog 2006-08-10 15:40:32 UTC (rev 2213)
@@ -1,8 +1,10 @@
yate (1.0.0-1.dfsg-3) UNRELEASED; urgency=low
+ [ Mikael Magnusson ]
* NOT RELEASED YET
+ * Patch: enable reuse of local socket addresses in extmodule
- -- Mark Purcell <msp at debian.org> Tue, 1 Aug 2006 18:14:53 +0100
+ -- Mikael Magnusson <mikma at users.sourceforge.net> Wed, 9 Aug 2006 22:12:23 +0200
yate (1.0.0-1.dfsg-2) unstable; urgency=low
Modified: yate/trunk/debian/patches/00list
===================================================================
--- yate/trunk/debian/patches/00list 2006-08-10 15:38:42 UTC (rev 2212)
+++ yate/trunk/debian/patches/00list 2006-08-10 15:40:32 UTC (rev 2213)
@@ -4,3 +4,4 @@
#zapchan
configure_ilbc
gcc41
+extmodule_reuseaddr
Added: yate/trunk/debian/patches/extmodule_reuseaddr.dpatch
===================================================================
--- yate/trunk/debian/patches/extmodule_reuseaddr.dpatch 2006-08-10 15:38:42 UTC (rev 2212)
+++ yate/trunk/debian/patches/extmodule_reuseaddr.dpatch 2006-08-10 15:40:32 UTC (rev 2213)
@@ -0,0 +1,21 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## extmodule_reuseaddr.dpatch by <mikma at users.sourceforge.net>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Reuse extmodule tcp port. Issue 43 in upstream bts.
+
+ at DPATCH@
+diff -urNad yate-1.0.0-1.dfsg~/modules/extmodule.cpp yate-1.0.0-1.dfsg/modules/extmodule.cpp
+--- yate-1.0.0-1.dfsg~/modules/extmodule.cpp 2006-07-01 00:51:55.000000000 +0200
++++ yate-1.0.0-1.dfsg/modules/extmodule.cpp 2006-08-09 20:47:41.000000000 +0200
+@@ -1414,6 +1414,10 @@
+ m_name.c_str(),m_socket.error(),strerror(m_socket.error()));
+ return false;
+ }
++
++ const int reuseFlag = 1;
++ m_socket.setOption(SOL_SOCKET,SO_REUSEADDR,&reuseFlag,sizeof(reuseFlag));
++
+ if (!m_socket.bind(addr)) {
+ Debug(DebugWarn,"Could not bind listener '%s' error %d: %s",
+ m_name.c_str(),m_socket.error(),strerror(m_socket.error()));
Property changes on: yate/trunk/debian/patches/extmodule_reuseaddr.dpatch
___________________________________________________________________
Name: svn:executable
+ *
More information about the Pkg-voip-commits
mailing list