pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/udpcast Linux doesn't know SO_REUSEPORT, noticed b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2059042c1f08
branches:  trunk
changeset: 518001:2059042c1f08
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Mon Aug 28 15:07:48 2006 +0000

description:
Linux doesn't know SO_REUSEPORT, noticed by Min Sik Kim

diffstat:

 net/udpcast/distinfo         |   4 ++--
 net/udpcast/patches/patch-ab |  12 ++++++++----
 2 files changed, 10 insertions(+), 6 deletions(-)

diffs (48 lines):

diff -r 07959a84387c -r 2059042c1f08 net/udpcast/distinfo
--- a/net/udpcast/distinfo      Mon Aug 28 14:12:59 2006 +0000
+++ b/net/udpcast/distinfo      Mon Aug 28 15:07:48 2006 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.3 2006/08/22 15:52:15 joerg Exp $
+$NetBSD: distinfo,v 1.4 2006/08/28 15:07:48 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
+SHA1 (patch-ab) = c992f92e58bdc0726cc659e4720274ebcea58eb1
 SHA1 (patch-ac) = 13e8289e336de78413ed6c9fdce6508222577365
 SHA1 (patch-ad) = ab0ab1e9f5cd98d0e1ffd15f7846ea889608fed8
 SHA1 (patch-ae) = 4937aec1283ca42652f9614e317fa63dcc500019
diff -r 07959a84387c -r 2059042c1f08 net/udpcast/patches/patch-ab
--- a/net/udpcast/patches/patch-ab      Mon Aug 28 14:12:59 2006 +0000
+++ b/net/udpcast/patches/patch-ab      Mon Aug 28 15:07:48 2006 +0000
@@ -1,20 +1,24 @@
-$NetBSD: patch-ab,v 1.1 2006/08/09 14:00:08 drochner Exp $
+$NetBSD: patch-ab,v 1.2 2006/08/28 15:07:48 drochner Exp $
 
---- socklib.c.orig     2006-08-09 14:54:45.000000000 +0200
+--- socklib.c.orig     2006-05-24 00:19:49.000000000 +0200
 +++ socklib.c
-@@ -879,6 +879,7 @@ int makeSocket(addr_type_t addr_type, 
+@@ -879,6 +879,9 @@ int makeSocket(addr_type_t addr_type, 
      int ret, s;
      struct sockaddr_in myaddr;
      in_addr_t ip=0;
++#ifdef SO_REUSEPORT
 +    int one = 1;
++#endif
  
  #ifdef WINDOWS
      static int lastSocket=-1;
-@@ -897,6 +898,8 @@ int makeSocket(addr_type_t addr_type, 
+@@ -897,6 +900,10 @@ int makeSocket(addr_type_t addr_type, 
        exit(1);
      }
  
++#ifdef SO_REUSEPORT
 +    ret = setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one));
++#endif
 +
      if(addr_type == ADDR_TYPE_MCAST && tmpl != NULL) {
        ip = tmpl->sin_addr.s_addr;



Home | Main Index | Thread Index | Old Index