Commit Graph

  • a3efd63c5f In 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
  • cf40abd922 Fix 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
  • 4661334870 Fix 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
  • 4ebf890e92 Fix 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
  • 4657e57766 Using 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
  • 21660334e4 In 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
  • 97af8b6fdb Fix 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
  • 934bd2682f Fix 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
  • b8e9628140 Fix 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
  • f97315f778 White spaces. (cherry picked from commit b3b7a91a6435265230fc5f25c1aa47ff27ad32b2) Marcelo Roberto Jimenez 2010-09-03 21:51:31 -03:00
  • 947599710d Issue 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
  • 36a6887834 Adding .gitignore. (cherry picked from commit 842a6ce5c883e9c9f989d867fd2e25c7c7ac0a1c) Marcelo Roberto Jimenez 2010-09-03 21:49:20 -03:00
  • b3b7a91a64 White spaces. Marcelo Roberto Jimenez 2010-09-03 21:51:31 -03:00
  • ebc941f265 Issue 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
  • 842a6ce5c8 Adding .gitignore. Marcelo Roberto Jimenez 2010-09-03 21:49:20 -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
  • 93a3016df1 Forward port of svn rev. 581: White spaces. Marcelo Roberto Jimenez 2010-08-22 02:13:34 +00:00
  • 36d6a34f5d Forward port of svn rev. 580: The last part of Ronan Menard's patch. Marcelo Roberto Jimenez 2010-08-22 02:11:44 +00:00
  • 2d978c32b8 White spaces. last_svn_1.6.x Marcelo Roberto Jimenez 2010-08-22 02:10:50 +00:00
  • e386dd0d68 The last part of Ronan Menard's patch. Marcelo Roberto Jimenez 2010-08-22 02:05:34 +00:00
  • 9763158d69 Forward port of svn rev. 578: * upnp/src/ssdp/ssdp_device.c: Fix for IPV6 ULA/GUA issues. * upnp/src/ssdp/ssdp_ctrlpt.c: Fix for IPV6 ULA/GUA issues. * upnp/src/ssdp/ssdp_server.c: Fix for IPV6 ULA/GUA issues. Marcelo Roberto Jimenez 2010-08-22 01:44:25 +00:00
  • 5a2cc884c1 * upnp/src/ssdp/ssdp_device.c: Fix for IPV6 ULA/GUA issues. * upnp/src/ssdp/ssdp_ctrlpt.c: Fix for IPV6 ULA/GUA issues. * upnp/src/ssdp/ssdp_server.c: Fix for IPV6 ULA/GUA issues. Marcelo Roberto Jimenez 2010-08-22 01:34:35 +00:00
  • 2963919081 Forward port of svn rev. 576: * upnp/src/genlib/miniserver/miniserver.c: Fix for IPV6 ULA/GUA issues. Marcelo Roberto Jimenez 2010-08-21 22:16:24 +00:00
  • a362d06dff upnp/src/genlib/miniserver/miniserver.c: Fix for IPV6 ULA/GUA issues. Marcelo Roberto Jimenez 2010-08-21 22:13:26 +00:00
  • 9f7936781e Forward port of svn rev. 574: * gena_subscribe(): Fix for IPV6 ULA/GUA issues. Marcelo Roberto Jimenez 2010-08-21 21:57:40 +00:00
  • 0e73448ea8 * gena_subscribe(): Fix for IPV6 ULA/GUA issues. Marcelo Roberto Jimenez 2010-08-21 21:53:09 +00:00
  • bc724a8073 Forward 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
  • 7ff1d56906 Forward port of svn rev. 569: * SSDP_IPV6_SITELOCAL: new macro. Marcelo Roberto Jimenez 2010-08-21 21:36:22 +00:00
  • 2150bdc5b6 Forward 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
  • c9bcee536e The scope of the macro NUM_HANDLE is now restricted to upnpapi.c. Marcelo Roberto Jimenez 2010-08-21 21:22:09 +00:00
  • 5bb3621626 Forward 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
  • b895fce678 Forward 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
  • bc551a1ab3 Forward port of svn rev. 562: English mispelling. Marcelo Roberto Jimenez 2010-08-19 13:56:00 +00:00
  • 74db05ff1e English mispelling. Marcelo Roberto Jimenez 2010-08-19 13:54:44 +00:00
  • a13d09176f Forward 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
  • 9468e0224a libUPnP does support IPV6 now. Patch submitted by Ronan Menard. Marcelo Roberto Jimenez 2010-08-19 13:48:17 +00:00
  • 03c858af51 Backport 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
  • cb89781a55 HTTP 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
  • 3de0765893 Backport 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
  • b2e38b2fca SF Bug Tracker [ 3022490 ] String declaration fix for patch applied in 3007407 Hello, Marcelo Roberto Jimenez 2010-06-28 20:36:30 +00:00
  • ce0e5b664f Backport of svn rev. 554: Remove excessive 'dnl's from libupnp.m4. Marcelo Roberto Jimenez 2010-06-26 11:09:49 +00:00
  • fab22807c0 Remove excessive 'dnl's from libupnp.m4. Marcelo Roberto Jimenez 2010-06-26 11:09:06 +00:00
  • eec36896c3 2010-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
  • 338b22b754 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:02:03 +00:00
  • 00cf8052de Add 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
  • 11524cc218 Add 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
  • 54727b2a9e Forward 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
  • 74b8730f0f 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:07:26 +00:00
  • 71ec18a3a9 Remove ifdef's code from upnp.h. Marcelo Roberto Jimenez 2010-05-01 02:25:06 +00:00
  • 1b45bec411 Backport 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
  • 99758f2dff Changelog update. Marcelo Roberto Jimenez 2010-04-25 14:57:48 +00:00
  • 3772ad4595 Define PROTOTYPES to be one by default in global.h. This affects the RSA MD5 code. Marcelo Roberto Jimenez 2010-04-25 14:51:57 +00:00
  • d33ad5c03e Separation of the ClientSubscription object. Marcelo Roberto Jimenez 2010-04-25 13:57:25 +00:00
  • ad9bcc9100 Comment. Marcelo Roberto Jimenez 2010-04-25 12:07:36 +00:00
  • 21163f491d Comment. Marcelo Roberto Jimenez 2010-04-25 12:04:48 +00:00
  • da5cf568e6 Recasting away constness. Marcelo Roberto Jimenez 2010-04-25 11:42:32 +00:00
  • a54e07bfb2 Code convergence for client_table (ClientSubscription). Marcelo Roberto Jimenez 2010-04-25 08:47:37 +00:00
  • 0dea692199 Allow null pointer deletions in membuffer. Marcelo Roberto Jimenez 2010-04-25 00:47:37 +00:00
  • dc457414d1 Adding UpnpString. Marcelo Roberto Jimenez 2010-04-25 00:44:34 +00:00
  • 7f1be91e76 Mostly 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
  • 01039a1d9a Protect 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
  • 472cc5a993 Protect the object destructors agains null pointers on deletion, which should be something valid. Marcelo Roberto Jimenez 2010-04-25 00:18:43 +00:00
  • e1d09004eb Subscription auto-renewals copy the renewal time from old subscription. Nick Leverton 2010-04-21 12:28:27 +00:00
  • a627df4d10 SF 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
  • 8f852b1ee9 Code base convergence. Marcelo Roberto Jimenez 2010-04-01 20:36:35 +00:00
  • 640fa8b1be Code base convergence. Marcelo Roberto Jimenez 2010-04-01 20:36:30 +00:00
  • 2bcbdffd89 1 - 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
  • 59ec1fd641 White spaces and code reorganization. Marcelo Roberto Jimenez 2010-03-31 17:47:55 +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
  • 9c440e2cbf Forward 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
  • 6c8a4dd361 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:45:47 +00:00
  • e9941f7ac8 UTF-8 stuff. Marcelo Roberto Jimenez 2010-03-27 14:41:25 +00:00
  • 5a465a5cf2 White spaces. Marcelo Roberto Jimenez 2010-03-22 09:08:15 +00:00
  • c434f275ef White spaces. Marcelo Roberto Jimenez 2010-03-22 09:07:44 +00:00
  • 35392132af Forward port of svn revision 520: * SF Bug Tracker [ 2392166 ] ithread_detach not called for finished worker thread Submitted: Ulrik ( ulsv_enea ) - 2008-12-05 08:24 Marcelo Roberto Jimenez 2010-03-21 23:10:44 +00:00
  • 6aa2419cfd SF Bug Tracker [ 2392166 ] ithread_detach not called for finished worker thread Submitted: Ulrik ( ulsv_enea ) - 2008-12-05 08:24 Marcelo Roberto Jimenez 2010-03-21 22:41:49 +00:00
  • 5eccaf4b64 Forward port of svn revision 518: * SF Bug Tracker [ 2392304 ] Memory leak in SSDP AdvertiseAndReply Submitted: Ulrik ( ulsv_enea ) - 2008-12-05 08:24 Marcelo Roberto Jimenez 2010-03-21 21:32:44 +00:00
  • 712ed6d2ff SF Bug Tracker [ 2392304 ] Memory leak in SSDP AdvertiseAndReply Submitted: Ulrik ( ulsv_enea ) - 2008-12-05 08:24 Marcelo Roberto Jimenez 2010-03-21 21:19:13 +00:00
  • 53d5e61b33 Thanks update. Marcelo Roberto Jimenez 2010-03-21 19:53:20 +00:00
  • c6558b04d5 Thanks update. Marcelo Roberto Jimenez 2010-03-21 19:52:22 +00:00
  • 324931ca8f Backport 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
  • bf169e434c 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:47:19 +00:00
  • edc0638640 Backport 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
  • b26fe55772 Style compatibilization between two similar constructions addressed in two separate recent patches. Marcelo Roberto Jimenez 2010-03-21 17:06:35 +00:00
  • e1ea72a5fb Backport 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
  • 1e6c3331ed 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:16 +00:00
  • 5eb55e0fb2 Backport 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
  • c7806de98c Changelog update. Marcelo Roberto Jimenez 2010-03-21 15:42:29 +00:00
  • c56ab5613e Cosmetic change to uri.c Marcelo Roberto Jimenez 2010-03-21 15:12:28 +00:00
  • f6a30b842c Forward 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
  • 9226dd833b SF 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
  • cbbbb14e21 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-20 22:09:23 +00:00
  • 0c578f7962 Forward 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
  • 25c908c558 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:32:38 +00:00
  • 500eb1df8f Changelog date fix. Marcelo Roberto Jimenez 2010-03-20 21:30:29 +00:00
  • 8eac74ee50 SF 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