pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/udpcast add a SO_REUSEPORT to make this work
details: https://anonhg.NetBSD.org/pkgsrc/rev/401c2719c8f5
branches: trunk
changeset: 517348:401c2719c8f5
user: drochner <drochner%pkgsrc.org@localhost>
date: Wed Aug 09 14:00:08 2006 +0000
description:
add a SO_REUSEPORT to make this work
diffstat:
net/udpcast/distinfo | 3 ++-
net/udpcast/patches/patch-ab | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletions(-)
diffs (37 lines):
diff -r ce4a8d6326e9 -r 401c2719c8f5 net/udpcast/distinfo
--- a/net/udpcast/distinfo Wed Aug 09 13:58:30 2006 +0000
+++ b/net/udpcast/distinfo Wed Aug 09 14:00:08 2006 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/08/09 10:04:12 wiz Exp $
+$NetBSD: distinfo,v 1.2 2006/08/09 14:00:08 drochner Exp $
SHA1 (udpcast-20060619.tar.gz) = ae95820c746fc6d6dc2c4c97d24d52105983e15c
RMD160 (udpcast-20060619.tar.gz) = 1f8ffefc5f5a412f1b8bb371895987734f6159b1
Size (udpcast-20060619.tar.gz) = 76311 bytes
SHA1 (patch-aa) = 71af13c0bede7748e8b9d32f920488d263d3348f
+SHA1 (patch-ab) = ef6b9b9ccc99028cc5ff939bc708d8812e032a62
diff -r ce4a8d6326e9 -r 401c2719c8f5 net/udpcast/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/udpcast/patches/patch-ab Wed Aug 09 14:00:08 2006 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.1 2006/08/09 14:00:08 drochner Exp $
+
+--- socklib.c.orig 2006-08-09 14:54:45.000000000 +0200
++++ socklib.c
+@@ -879,6 +879,7 @@ int makeSocket(addr_type_t addr_type,
+ int ret, s;
+ struct sockaddr_in myaddr;
+ in_addr_t ip=0;
++ int one = 1;
+
+ #ifdef WINDOWS
+ static int lastSocket=-1;
+@@ -897,6 +898,8 @@ int makeSocket(addr_type_t addr_type,
+ exit(1);
+ }
+
++ ret = setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one));
++
+ if(addr_type == ADDR_TYPE_MCAST && tmpl != NULL) {
+ ip = tmpl->sin_addr.s_addr;
+ }
Home |
Main Index |
Thread Index |
Old Index