head 1.6; access; symbols pkgsrc-2013Q2:1.6.0.4 pkgsrc-2013Q2-base:1.6 pkgsrc-2012Q4:1.6.0.2 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q1:1.5.0.40 pkgsrc-2012Q1-base:1.5 pkgsrc-2011Q4:1.5.0.38 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.36 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.5.0.34 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.32 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.30 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.28 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.26 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.24 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.22 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.20 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.18 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.5.0.16 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.5.0.14 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.12 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.10 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.8 pkgsrc-2008Q2-base:1.5 cwrapper:1.5.0.6 pkgsrc-2008Q1:1.5.0.4 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.2 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.4.0.2 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.3.0.2 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.1.1.1.0.8 pkgsrc-2007Q1-base:1.1.1.1 pkgsrc-2006Q4:1.1.1.1.0.6 pkgsrc-2006Q4-base:1.1.1.1 pkgsrc-2006Q3:1.1.1.1.0.4 pkgsrc-2006Q3-base:1.1.1.1 pkgsrc-2006Q2:1.1.1.1.0.2 pkgsrc-2006Q2-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2012.04.13.23.38.34; author obache; state dead; branches; next 1.5; 1.5 date 2007.11.08.03.56.58; author obache; state Exp; branches; next 1.4; 1.4 date 2007.08.19.01.36.22; author obache; state Exp; branches; next 1.3; 1.3 date 2007.06.19.01.40.14; author rh; state dead; branches; next 1.2; 1.2 date 2007.06.07.08.08.16; author rh; state Exp; branches; next 1.1; 1.1 date 2006.06.03.23.29.24; author rh; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2006.06.03.23.29.24; author rh; state Exp; branches; next ; desc @@ 1.6 log @Update libupnp to 1.6.17. * IPv6 support (introduce some API/ABI incompatibility). * many bug fixes, @ text @$NetBSD: patch-ac,v 1.5 2007/11/08 03:56:58 obache Exp $ --- upnp/src/genlib/net/uri/uri.c.orig 2007-08-06 01:21:23.000000000 +0000 +++ upnp/src/genlib/net/uri/uri.c @@@@ -625,9 +625,9 @@@@ parse_hostport( const char *in, //call gethostbyname_r (reentrant form of gethostbyname) // TODO: Use autoconf to discover this rather than the // platform-specific stuff below -#if defined(WIN32) || defined(__CYGWIN__) +#if defined(WIN32) || defined(__CYGWIN__) || defined(_AIX50) || defined(__upux11) h = gethostbyname(temp_host_name); -#elif defined(SPARC_SOLARIS) +#elif defined(sun) || defined(__sun) || defined(sgi) || defined(__sgi) errCode = gethostbyname_r( temp_host_name, &h, @@@@ -647,12 +647,17 @@@@ parse_hostport( const char *in, if ( h == NULL ) { errCode = 1; } -#elif defined(__linux__) +#elif defined(__GLIBC__) errCode = gethostbyname_r( temp_host_name, &h_buf, temp_hostbyname_buff, BUFFER_SIZE, &h, &errcode ); +#elif defined(__osf1__) || defined(__hpux) || defined(_AIX) + errCode = gethostbyname_r( temp_host_name, + &h_buf, + (struct hostent_data*)temp_hostbyname_buff); + h = &h_buf; #else { struct addrinfo hints, *res, *res0; @ 1.5 log @Update libupnp to 1.6.1. While here, add DESTDIR support. Changes: ******************************************************************************* Version 1.6.1 ******************************************************************************* 2007-11-07 Marcelo Jimenez * SF Bug Tracker [ 1825278 ] AdvertiseAndReply sleeps with handle lock out Applied patch from Alex (afaucher) to change some write locks to read locks. 2007-11-06 Marcelo Jimenez * Adjusting libtool library numbers to reflect the last changes. 2007-11-06 Marcelo Jimenez * SF Bug Tracker [ 1825278 ] AdvertiseAndReply sleeps with handle lock out GlobalHndMutex, which was a mutex is now GlobalHndRWLock, which is a rwlock. HandleLock() is mapped to HandleWriteLock() while all other instances have not been checked. One instance in AdvertiseAndReply() has been changed to HandleReadLock(). Thanks to Alex (afaucher) for the bug report and suggestions. 2007-11-06 Marcelo Jimenez * Added support for rwlocks. 2007-11-05 Marcelo Jimenez * SF Bug Tracker [ 1825929 ] woker thread still alive after UpnpFinish() Submitted By: Luke Kim - nereusuj Worker thread still alive after calling UpnpFinish() because ThreadPoolShutdown() is in the #ifdef DEBUG block. 421 422 #ifdef DEBUG 423 ThreadPoolShutdown( &gSendThreadPool ); 424 ThreadPoolShutdown( &gRecvThreadPool ); 2007-08-28 Marcelo Jimenez * Changed the calls to virtualDirCallback.open(filename, UPNP_WRITE) to (virtualDirCallback.open)(filename, UPNP_WRITE) (notice the parenthesis) due to a change in glibc that produces compilation errors. 2007-08-28 Marcelo Jimenez * Initialization of the "randomness" struct so that valgrind does not complain. 2007-08-06 Marcelo Jimenez * Merge of patch submitted By Keith Brindley - brindlk SF Bug Tracker [ 1762758 ] Seek not working for large files Problem: Requests from the uPnP client to seek to a position beyond 2GB in a large file are handled as a request to see from the 2GB point. Impact: Varies depending on client. The Xbox 360 kills the connection when it realises. Solution: GetNextRange function (webserver.c) is updated to handle large file sizes. Fix should also recognise when built on a 32bit platform rather than 64 and handle accordingly. 2007-08-05 Marcelo Jimenez * Merge of Mac OS X patch from Stephane Corthesy (davelopper), SF Bug Tracker [ 1686420 ] Modifications for MacOSX. Some of the proposed changes were already done by Rene Hexel's patch. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.4 2007/08/19 01:36:22 obache Exp $ @ 1.4 log @Update libupnp to 1.6.0. Merge from wip/libupnp. No functionally changes since RC1. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- upnp/src/genlib/net/uri/uri.c.orig 2007-06-09 12:53:47.000000000 +0000 d11 1 a11 1 h=gethostbyname(temp_host_name); d14 4 a17 4 errCode = gethostbyname_r( temp_host_name, &h, temp_hostbyname_buff, @@@@ -640,11 +640,16 @@@@ parse_hostport( const char *in, d19 1 a19 1 errCode = 1; d23 5 a27 4 errCode = gethostbyname_r( temp_host_name, &h_buf, temp_hostbyname_buff, BUFFER_SIZE, &h, &errcode ); d34 2 a35 2 { struct addrinfo hints, *res, *res0; @ 1.3 log @Update libupnp to 1.6.0 (currently a leaf package). Changes are mainly bugfixes, including a couple of serious bugs that prevented the library from working on NetBSD and Darwin (for anything other than trivial tests). Add a buildlink3.mk while at it. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.2 2007/06/07 08:08:16 rh Exp $ d3 1 a3 1 --- upnp/src/genlib/net/uri/uri.c.orig 2007-04-28 22:02:33.000000000 +1000 d5 13 a17 1 @@@@ -631,11 +631,38 @@@@ parse_hostport( const char *in, d21 2 a22 2 -#else +#elif defined(__linux__) d27 8 a34 30 +#else +{ + struct addrinfo hints, *res, *res0; + + h = NULL; + memset(&hints, 0, sizeof(hints)); + hints.ai_family = PF_INET; + hints.ai_socktype = SOCK_STREAM; + errCode = getaddrinfo(temp_host_name, "http", &hints, &res0); + + if (!errCode) { + for (res = res0; res; res = res->ai_next) { + if (res->ai_family == PF_INET && + res->ai_addr->sa_family == AF_INET) + { + h = &h_buf; + h->h_addrtype = res->ai_addr->sa_family; + h->h_length = 4; + h->h_addr = (void *) temp_hostbyname_buff; + *(struct in_addr *)h->h_addr = + ((struct sockaddr_in *)res->ai_addr)->sin_addr; + break; + } + } + freeaddrinfo(res0); + } +} #endif if( errCode == 0 ) { @ 1.2 log @Update libupnp to 1.4.6. Changes include tons of bugfixes and portability fixes. This version now also comes with full API reference documentation. @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Initial revision @ text @d3 42 a44 12 --- upnp/src/uuid/sysdep.c.orig 2006-02-23 07:38:04.000000000 +1000 +++ upnp/src/uuid/sysdep.c @@@@ -145,7 +145,9 @@@@ get_random_info( char seed[16] ) { MD5_CTX c; typedef struct { +#ifdef _SYS_SYSINFO_H struct sysinfo s; +#endif struct timeval t; char hostname[257]; } randomness; @ 1.1.1.1 log @Initial import of libupnp-1.3.1, a universal plug and play (UPnP) SDK. @ text @@