a3efd63c5fIn the latest sources, http_RequestAndResponse and other methods that use connect() are broken. More specifically, connect() in these methods is returning with an EINVAL. The programatic cause is that the address_len argument passed to connect() is different in IPV4 vs IPV6 (as described in: http://www.opengroup.org/onlinepubs/009695399/functions/connect.html). The current code always uses the IPV6 size. The fix modifies each use of connect() to use the correct size based on the address family being used.
Marcelo Roberto Jimenez
2010-09-07 21:34:16 -03:00
cf40abd922Fix compilation error in upnp/src/gena/gena_ctrlpt.c (this is most likely an error on all platforms).
Marcelo Roberto Jimenez
2010-09-07 14:57:56 -03:00
4661334870Fix compilation error in upnp/src/inc/ssdplib.h when compiling in OS X (the netinet/* headers are not available).
Marcelo Roberto Jimenez
2010-09-07 14:51:38 -03:00
4ebf890e92Fix compilation error in ixml/inc/ixml.h when compiling with an Objective-C compiler (when cross-compiling for iPhone devices).
Marcelo Roberto Jimenez
2010-09-07 14:47:12 -03:00
4657e57766Using UpnpReadHttpGet to download large files causes the application to crash. This happens when the file being downloaded exceeds the device memory - entirely possible when transferring video files. The programmatic cause is that the logic implemented in the function http_ReadHttpGet (which UpnpReadHttpGet calls) reads the entire file into memory. The fix modifies the existing logic to discard data after it's been read; there's no reason to keep it around since the caller of UpnpReadHttpGet already has a copy of it.
Marcelo Roberto Jimenez
2010-09-07 22:15:21 -03:00
21660334e4In the latest sources, http_RequestAndResponse and other methods that use connect() are broken. More specifically, connect() in these methods is returning with an EINVAL. The programatic cause is that the address_len argument passed to connect() is different in IPV4 vs IPV6 (as described in: http://www.opengroup.org/onlinepubs/009695399/functions/connect.html). The current code always uses the IPV6 size. The fix modifies each use of connect() to use the correct size based on the address family being used.
Marcelo Roberto Jimenez
2010-09-07 21:34:16 -03:00
97af8b6fdbFix compilation error in upnp/src/gena/gena_ctrlpt.c (this is most likely an error on all platforms).
Marcelo Roberto Jimenez
2010-09-07 14:57:56 -03:00
934bd2682fFix compilation error in upnp/src/inc/ssdplib.h when compiling in OS X (the netinet/* headers are not available).
Marcelo Roberto Jimenez
2010-09-07 14:51:38 -03:00
b8e9628140Fix compilation error in ixml/inc/ixml.h when compiling with an Objective-C compiler (when cross-compiling for iPhone devices).
Marcelo Roberto Jimenez
2010-09-07 14:47:12 -03:00
947599710dIssue regarding the GENA notifications. A string termination indicator was added at the end of the notification ("\r\n") in notify_send_and_recv() in upnp/src/gena/gena_device.c.
Marcelo Roberto Jimenez
2010-09-03 21:49:49 -03:00
ebc941f265Issue regarding the GENA notifications. A string termination indicator was added at the end of the notification ("\r\n") in notify_send_and_recv() in upnp/src/gena/gena_device.c.
Marcelo Roberto Jimenez
2010-09-03 21:49:49 -03:00
a15e0c99d7* upnp/src/api/Discovery.c: Fix a serious bug and memory leak in UpnpDiscovery_strcpy_DeviceType(). Thanks to David Blanchet for the patch.
last_svn_trunk
Marcelo Roberto Jimenez
2010-08-22 11:32:09 +00:00
93a3016df1Forward port of svn rev. 581: White spaces.
Marcelo Roberto Jimenez
2010-08-22 02:13:34 +00:00
36d6a34f5dForward port of svn rev. 580: The last part of Ronan Menard's patch.
Marcelo Roberto Jimenez
2010-08-22 02:11:44 +00:00
bc724a8073Forward port of svn rev. 572: * SOCKET ssdpSock6UlaGua: created variable for later use.
Marcelo Roberto Jimenez
2010-08-21 21:43:54 +00:00
a7966b6597* SOCKET ssdpSock6UlaGua: created variable for later use.
Marcelo Roberto Jimenez
2010-08-21 21:40:00 +00:00
7ff1d56906Forward port of svn rev. 569: * SSDP_IPV6_SITELOCAL: new macro.
Marcelo Roberto Jimenez
2010-08-21 21:36:22 +00:00
2150bdc5b6Forward port of svn rev. 568: The scope of the macro NUM_HANDLE is now restricted to upnpapi.c.
Marcelo Roberto Jimenez
2010-08-21 21:34:17 +00:00
2d5c6310a9* SSDP_IPV6_SITELOCAL: new macro.
Marcelo Roberto Jimenez
2010-08-21 21:31:55 +00:00
c9bcee536eThe scope of the macro NUM_HANDLE is now restricted to upnpapi.c.
Marcelo Roberto Jimenez
2010-08-21 21:22:09 +00:00
5bb3621626Forward port of svn rev. 566: * InitHandleList() has never been implemented, I guess no one has ever called it, so remove it. * GetFreeHandle() and FreeHandle() are now static as they should.
Marcelo Roberto Jimenez
2010-08-21 21:15:39 +00:00
1605744278* InitHandleList() has never been implemented, I guess no one has ever called it, so remove it. * GetFreeHandle() and FreeHandle() are now static as they should.
Marcelo Roberto Jimenez
2010-08-21 21:10:50 +00:00
b895fce678Forward port of svn rev. 564: * New internal buffer added to store global/ula IPV6 address. * Macros to test whether an IPV6 address is global or ula. * UpnpGetServerUlaGuaIp6Address(): added interface. * IN6_IS_ADDR_GLOBAL, IN6_IS_ADDR_ULA: new macros. * gIF_IPV6_ULA_GUA: new buffer. * UpnpRegisterRootDevice3(): Change to the test of already registered devices for IPV6. * UpnpGetIfInfo(): gua/ula issues.
Marcelo Roberto Jimenez
2010-08-21 20:51:29 +00:00
ce0d2833a3* New internal buffer added to store global/ula IPV6 address. * Macros to test whether an IPV6 address is global or ula. * UpnpGetServerUlaGuaIp6Address(): added interface. * IN6_IS_ADDR_GLOBAL, IN6_IS_ADDR_ULA: new macros. * gIF_IPV6_ULA_GUA: new buffer. * UpnpRegisterRootDevice3(): Change to the test of already registered devices for IPV6. * UpnpGetIfInfo(): gua/ula issues.
Marcelo Roberto Jimenez
2010-08-21 20:42:43 +00:00
bc551a1ab3Forward port of svn rev. 562: English mispelling.
Marcelo Roberto Jimenez
2010-08-19 13:56:00 +00:00
a13d09176fForward port of svn rev. 560: libUPnP does support IPV6 now. Patch submitted by Ronan Menard.
Marcelo Roberto Jimenez
2010-08-19 13:50:21 +00:00
9468e0224alibUPnP does support IPV6 now. Patch submitted by Ronan Menard.
Marcelo Roberto Jimenez
2010-08-19 13:48:17 +00:00
03c858af51Backport of svn rev. 558: HTTP version equal to 1.0 should failed as required by the UPnP certification tool.
Marcelo Roberto Jimenez
2010-08-19 13:39:44 +00:00
cb89781a55HTTP version equal to 1.0 should failed as required by the UPnP certification tool. Patch submitted by Ronan Menard.
Marcelo Roberto Jimenez
2010-08-19 13:27:50 +00:00
3de0765893Backport of svn rev 556: SF Bug Tracker [ 3022490 ] String declaration fix for patch applied in 3007407 Hello,
Marcelo Roberto Jimenez
2010-06-28 20:40:21 +00:00
eec36896c32010-06-10 Marcelo Jimenez <mroberto(at)users.sourceforge.net> Backport of svn revision 552: SF Bug Tracker [ 3007407 ] Service traversal issue in AdvertiseAndReply() Submitted: Chuck Thomason ( cyt4 ) - 2010-05-26 15:07:39 UTC
Marcelo Roberto Jimenez
2010-06-17 17:07:41 +00:00
338b22b754SF Bug Tracker [ 3007407 ] Service traversal issue in AdvertiseAndReply() Submitted: Chuck Thomason ( cyt4 ) - 2010-05-26 15:07:39 UTC
Marcelo Roberto Jimenez
2010-06-17 17:02:03 +00:00
00cf8052deAdd PTHREAD_CFLAGS to Libs: in libupnp.pc, as assumed by acx_pthread.m4 (fixes binutils-gold link failure)
Nick Leverton
2010-05-14 13:09:59 +00:00
11524cc218Add PTHREAD_CFLAGS to Libs: in libupnp.pc, as assumed by acx_pthread.m4 (fixes binutils-gold link failure)
Nick Leverton
2010-05-14 13:09:22 +00:00
54727b2a9eForward port of svn revision 548: [svn] SF Bug Tracker [ 2995758 ] libupnp 1.6.6, wrong bind when reuseaddr is 1. Submitted: viallard anthony ( homer242 ) When trying to use reuseaddr option in miniserver/miniserver.c, there isn't a affectation of the port chosen (serverAddr.sin_port isn't receive listen_port variable value).
Marcelo Roberto Jimenez
2010-05-07 11:20:00 +00:00
74b8730f0fSF Bug Tracker [ 2995758 ] libupnp 1.6.6, wrong bind when reuseaddr is 1. Submitted: viallard anthony ( homer242 ) When trying to use reuseaddr option in miniserver/miniserver.c, there isn't a affectation of the port chosen (serverAddr.sin_port isn't receive listen_port variable value).
Marcelo Roberto Jimenez
2010-05-07 11:07:26 +00:00
1b45bec411Backport of r544: Define PROTOTYPES to be one by default in global.h. This affects the RSA MD5 code.
Marcelo Roberto Jimenez
2010-04-25 14:59:32 +00:00
7f1be91e76Mostly whitespaces and code convergence. client_table has been totaly rewritten, so remove the old license.
Marcelo Roberto Jimenez
2010-04-25 00:29:52 +00:00
01039a1d9aProtect the object destructors agains null pointers on deletion, which should be something valid. Missed this one.
Marcelo Roberto Jimenez
2010-04-25 00:25:41 +00:00
472cc5a993Protect the object destructors agains null pointers on deletion, which should be something valid.
Marcelo Roberto Jimenez
2010-04-25 00:18:43 +00:00
e1d09004ebSubscription auto-renewals copy the renewal time from old subscription.
Nick Leverton
2010-04-21 12:28:27 +00:00
a627df4d10SF Patch Tracker [ 2987390 ] upnp_debug vs. ixml_debug Thanks for the load of updates, I'm still assimilating them ! Could I make a suggestion though? The addition of printNodes(IXML_Node) to upnpdebug a dds a new dependency on ixml.h for anything using upnpdebug.h. I'm making quite a bit of use of upnpdebug in porting things to version 1.8.0, and I'd prefer it if printNodes could be added to ixmldebug.h instead. I'm attach ing a patch, what do you think ?
Marcelo Roberto Jimenez
2010-04-16 13:38:06 +00:00
8f852b1ee9Code base convergence.
Marcelo Roberto Jimenez
2010-04-01 20:36:35 +00:00
640fa8b1beCode base convergence.
Marcelo Roberto Jimenez
2010-04-01 20:36:30 +00:00
2bcbdffd891 - Ported some of IPV6 code to 1.6.7. 2 - Backport of svn revision 527: * Added API to ithread, created the following functions: - int ithread_initialize_library(void); - int ithread_cleanup_library(void); - int ithread_initialize_thread(void); - int ithread_cleanup_thread(void); * SF Bug Tracker [ 2876374 ] Access Violation when compiling with Visual Studio 2008 Submitted: Stulle ( stulleamgym ) - 2009-10-10 19:05
Marcelo Roberto Jimenez
2010-03-31 17:53:16 +00:00
3fb182aa95* Added API to ithread, created the following functions: - int ithread_initialize_library(void); - int ithread_cleanup_library(void); - int ithread_initialize_thread(void); - int ithread_cleanup_thread(void); * SF Bug Tracker [ 2876374 ] Access Violation when compiling with Visual Studio 2008 Submitted: Stulle ( stulleamgym ) - 2009-10-10 19:05
Marcelo Roberto Jimenez
2010-03-27 19:46:16 +00:00
9c440e2cbfForward port of svn revision 525: SF Patch Tracker [ 2836704 ] Patch for Solaris10 compilation and usage. Submitted By: zephyrus ( zephyrus00jp ) This second part covers the issue on linking with -lsocket -lnsl -lrt.
Marcelo Roberto Jimenez
2010-03-27 14:55:57 +00:00
6c8a4dd361SF Patch Tracker [ 2836704 ] Patch for Solaris10 compilation and usage. Submitted By: zephyrus ( zephyrus00jp ) This second part covers the issue on linking with -lsocket -lnsl -lrt.
Marcelo Roberto Jimenez
2010-03-27 14:45:47 +00:00
324931ca8fBackport of svn revision 514: libupnp and multi-flows scenario patch Submited by Carlo Parata from STMicroelectronics. Hi Roberto and Nektarios, after an analysis of the problem of libupnp with a multi-flows scenario, I noticed that the only cause of the freezed system is the ThreadPool management. There are not mutex problems. In practise, if all threads in the thread pool are busy executing jobs, a new worker thread should be created if a job is scheduled (I inspired to tombupnp library). So I solved the problem with a little patch in threadutil library that you can find attached in this e-mail. I hope to have helped you.
Marcelo Roberto Jimenez
2010-03-21 19:51:18 +00:00
bf169e434clibupnp and multi-flows scenario patch Submited by Carlo Parata from STMicroelectronics. Hi Roberto and Nektarios, after an analysis of the problem of libupnp with a multi-flows scenario, I noticed that the only cause of the freezed system is the ThreadPool management. There are not mutex problems. In practise, if all threads in the thread pool are busy executing jobs, a new worker thread should be created if a job is scheduled (I inspired to tombupnp library). So I solved the problem with a little patch in threadutil library that you can find attached in this e-mail. I hope to have helped you.
Marcelo Roberto Jimenez
2010-03-21 19:47:19 +00:00
edc0638640Backport of svn revision 512: Style compatibilization between two similar constructions addressed in two separate recent patches.
Marcelo Roberto Jimenez
2010-03-21 17:07:09 +00:00
b26fe55772Style compatibilization between two similar constructions addressed in two separate recent patches.
Marcelo Roberto Jimenez
2010-03-21 17:06:35 +00:00
e1ea72a5fbBackport of svn revision 510: SF Patch Tracker [ 2964973 ] install: will not overwrite just-created ...blah... with... Submitted: Nick Leverton ( leveret ) - 2010-03-07 05:18
Marcelo Roberto Jimenez
2010-03-21 16:13:59 +00:00
1e6c3331edSF Patch Tracker [ 2964973 ] install: will not overwrite just-created ...blah... with... Submitted: Nick Leverton ( leveret ) - 2010-03-07 05:18
Marcelo Roberto Jimenez
2010-03-21 16:13:16 +00:00
5eb55e0fb2Backport of svn revision 504: SF Patch Tracker [ 2969188 ] 1.8.0: patch for FreeBSD compilation Submitted By: Nick Leverton (leveret) Fix the order of header inclusion for FreeBSD.
Marcelo Roberto Jimenez
2010-03-21 15:42:40 +00:00
c56ab5613eCosmetic change to uri.c
Marcelo Roberto Jimenez
2010-03-21 15:12:28 +00:00
f6a30b842cForward port of svn revision 505: SF Patch Tracker [ 2836704 ] Patch for Solaris10 compilation and usage. Submitted By: zephyrus ( zephyrus00jp )
Marcelo Roberto Jimenez
2010-03-21 11:50:26 +00:00
9226dd833bSF Patch Tracker [ 2836704 ] Patch for Solaris10 compilation and usage. Submitted By: zephyrus ( zephyrus00jp ) Obs by Marcelo: The issue with linking with -lsocket -lnsl -lrt is not covered in this changeset beacuse I don't have solaris to test. I will need some help from zephyrus in this regard. The issue will be addressed in a future changeset.
Marcelo Roberto Jimenez
2010-03-21 11:47:17 +00:00
cbbbb14e21SF Patch Tracker [ 2969188 ] 1.8.0: patch for FreeBSD compilation Submitted By: Nick Leverton (leveret) Fix the order of header inclusion for FreeBSD.
Marcelo Roberto Jimenez
2010-03-20 22:09:23 +00:00
0c578f7962Forward port of svn revision 502: SF Patch Tracker [ 2836704 ] Search for nested serviceList (not stopping at the first lis Submitted By: zephyrus ( zephyrus00jp )
Marcelo Roberto Jimenez
2010-03-20 21:35:04 +00:00
25c908c558SF Patch Tracker [ 2836704 ] Search for nested serviceList (not stopping at the first lis Submitted By: zephyrus ( zephyrus00jp )
Marcelo Roberto Jimenez
2010-03-20 21:32:38 +00:00
500eb1df8fChangelog date fix.
Marcelo Roberto Jimenez
2010-03-20 21:30:29 +00:00
8eac74ee50SF Patch Tracker [ 2973319 ] Problem in commit 499 Submitted By: Nick Leverton (leveret) Afraid that this doesn't compile, it seems retval should be retVal in two places.
Marcelo Roberto Jimenez
2010-03-20 21:27:51 +00:00