summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authordrochner <drochner>2006-08-09 14:00:08 +0000
committerdrochner <drochner>2006-08-09 14:00:08 +0000
commit39173276c4cd11bdd347b58b14fa3b34e6198b11 (patch)
treebc6d43560de45ecae06bea8f8b31d918566fbf0f /net
parentd1a64305e9492405a8bd6bd08e012fea6bb37666 (diff)
downloadpkgsrc-39173276c4cd11bdd347b58b14fa3b34e6198b11.tar.gz
add a SO_REUSEPORT to make this work
Diffstat (limited to 'net')
-rw-r--r--net/udpcast/distinfo3
-rw-r--r--net/udpcast/patches/patch-ab21
2 files changed, 23 insertions, 1 deletions
diff --git a/net/udpcast/distinfo b/net/udpcast/distinfo
index e546e716fc2..3f86babd4c8 100644
--- a/net/udpcast/distinfo
+++ b/net/udpcast/distinfo
@@ -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 --git a/net/udpcast/patches/patch-ab b/net/udpcast/patches/patch-ab
new file mode 100644
index 00000000000..4b2de6314f4
--- /dev/null
+++ b/net/udpcast/patches/patch-ab
@@ -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;
+ }