Commit Graph

1447 Commits

Author SHA1 Message Date
Thomas Bernard e6bc04aa06 miniupnpd/upnpsoap.c: fix potential memory corruption in upnpsoap.c/GetListOfPortMappings()
Credits goes to Stephen Röttger of the Google Security Team for identifying
the vulnerabilities
2014-12-09 11:01:37 +01:00
Thomas Bernard 7c91c4e933 miniupnpd/upnpredirect.c: check inet_aton() return 2014-12-09 10:53:52 +01:00
Thomas Bernard d00b75782e miniupnpd/upnppinhole.c: fix upnp_add_inboundpinhole() : check inet_pton() return 2014-12-09 10:52:26 +01:00
Thomas Bernard 2455cc85b6 miniupnpc-libevent: add event_cif_url/event_conn_url 2014-12-08 17:24:25 +01:00
Thomas Bernard 215b357e55 miniupnpc-libevent: prevent several SOAP request at the same time. 2014-12-08 17:23:29 +01:00
Thomas Bernard 8868eb7299 miniupnpc-libevent.c: minor modifications in logging 2014-12-06 12:20:24 +01:00
Thomas Bernard f8b6f3e90b minissdpd/Makefile: add asyncsendto.c/.h depends 2014-12-06 12:06:13 +01:00
Thomas Bernard a1065be414 minissdpd: VERSION 1.2 => 1.3 2014-12-05 18:38:23 +01:00
Thomas Bernard af3c6392e5 minissdpd/minissdpd.c: write on non blocking unix socket 2014-12-05 18:37:28 +01:00
Thomas Bernard a4d3546635 minissdpd/minissdpd.c: free service list 2014-12-05 18:36:03 +01:00
Thomas Bernard afe106d768 minissdpd: clean up select(), fix non blocking write 2014-12-05 17:35:34 +01:00
Thomas Bernard b405bdda2b minissdpd: handle ssdp:update messages 2014-12-04 11:41:19 +01:00
Thomas Bernard 3b71766493 miniupnpd/genconfig.sh: check net.ipv6.bindv6only under LINUX 2014-12-04 11:23:56 +01:00
Thomas Bernard a509abb371 miniupnpc-libevent/upnpc-libevent.c: improve output 2014-12-02 15:09:39 +01:00
Thomas Bernard 2fd247bcbc miniupnpc-libevent.c: make sure b < i and vars are initialized 2014-12-02 15:09:20 +01:00
Thomas Bernard 9fa6e70a55 miniupnpc-libevent: #define MINIUPNPC_LIBEVENT_API_VERSION 1 2014-12-02 14:48:39 +01:00
Thomas Bernard 12e49bda0d miniupnpc-libevent.c: set UPNPC_DEVICE_SOAP_REQ properly 2014-12-01 18:48:03 +01:00
Thomas Bernard c021d7351f miniupnpc-libevent: add ability to work on several devices simultaneously 2014-12-01 18:44:38 +01:00
Thomas Bernard 3a3072ee8c miniupnpc/upnpc.c: call WSACleanup() 2014-12-01 10:33:00 +01:00
Thomas Bernard c72591e72e miniupnpc/miniupnpc.c: fix compilation under WIN32 2014-12-01 10:31:50 +01:00
Thomas Bernard f43f7ee18f minissdpd/getroute.c: define SA_LEN in all situations 2014-12-01 10:31:13 +01:00
Thomas Bernard 63179a1f7f minisspd: check that peer is from a LAN
Change the list of LAN addresses/interfaces (code taken from miniupnpd)
Check that the peer is from a LAN for each SSDP packet
2014-11-28 17:48:35 +01:00
Thomas Bernard 186c504070 minissdpd: revert "listen on only 1 IPv4 if only 1 interface is specified"
because it prevents broadcast messages to be received
see 7ec7cec59e
and 6d379d54f5
2014-11-28 15:50:06 +01:00
Thomas Bernard 3665f1913d minissdpd: Cosmetic changes 2014-11-28 15:49:32 +01:00
Thomas Bernard c14788a13a miniupnpd: fixes ExecuteSoapAction() for missing " around SOAPAction 2014-11-28 14:29:24 +01:00
Thomas Bernard 2b233cdf69 miniupnpc-libevent.c: add double quotes (") around SOAPAction 2014-11-28 14:28:17 +01:00
Thomas Bernard c9e71676a8 miniupnpc-libevent/Makefile: add /usr/local/include and /usr/local/lib 2014-11-28 14:26:21 +01:00
Thomas Bernard 33a5ebf367 miniupnpd/upnpsoap.c: make WANAccessType easier to configure 2014-11-27 13:25:45 +01:00
Thomas Bernard 4cae31c948 miniupnpc.c: dont use if_indextoname() under MS Windows
fixes #85
2014-11-27 12:59:12 +01:00
Thomas Bernard 725632f27d miniupnpc: Add linksys_WAG200G_desc.xml to test 2014-11-26 12:39:43 +01:00
Thomas Bernard 8325b715d3 miniupnpc-libevent: handle error cases 2014-11-25 23:51:59 +01:00
Thomas Bernard b642e74124 miniupnpc-libevent.c: upnpc_conn_close_cb() only in DEBUG mode 2014-11-25 23:50:56 +01:00
Mike Gelfand c490b42547 Fix _POSIX_C_SOURCE definition
Current code makes use of `snprintf` function defined in C99 standard
but _POSIX_C_SOURCE is set to "1" which is not correct. To access C99
definitions, this macro should be set to at least "200112L".

Also, `strncasecmp` function is being used but corresponding <strings.h>
header is not being included in miniwget.c.

Changes have been tested on FreeBSD 10.1 amd64 with default compiler
(Clang).
2014-11-19 17:06:14 +03:00
Thomas Bernard d4bf4c7572 miniupnpc-libevent: add upnpc_get_status_info() 2014-11-18 10:31:59 +01:00
Thomas Bernard 3690785a79 miniupnpc/miniupnpc.c: accept all versions of urn:schemas-upnp-org:service:WANCommonInterfaceConfig: service 2014-11-18 00:01:48 +01:00
Thomas Bernard b6896d5c08 miniupnpc-libevent: WIN32 => _WIN32 2014-11-17 20:33:11 +01:00
Thomas Bernard d44d16a688 igd_desc_parse.c: define printIGD() only in DEBUG 2014-11-17 20:32:41 +01:00
Thomas Bernard 6e8106688c miniupnpc: validate igd_desc_parse 2014-11-17 20:31:11 +01:00
Thomas Bernard fa414c5bb6 allow to build miniupnpc-libevent with MacPorts 2014-11-17 17:29:52 +01:00
Thomas Bernard 7264fa53a9 miniupnpc-libevent: remove unecessary files 2014-11-17 17:29:24 +01:00
Thomas Bernard bd8ba03b54 miniupnpc-libevent: try with several M-SEARCH requests 2014-11-17 11:15:18 +01:00
Thomas Bernard eefb134e09 miniupnpc/listdevices.c: add -m option 2014-11-17 10:54:09 +01:00
Thomas Bernard e60c3a8ce5 Merge branch 'master' into search_all
Conflicts:
	miniupnpc/apiversions.txt
2014-11-17 10:29:29 +01:00
Thomas Bernard 3065bc570f miniupnpc-libevent: use service type from root description 2014-11-17 10:22:34 +01:00
Thomas Bernard 37cb73329a Added miniupnpc-async and miniupnpc-libevent 2014-11-17 10:21:30 +01:00
Thomas Bernard cbd262749f miniupnpc-libevent/upnpc-libevent.c: detect local IP address and use it 2014-11-14 12:39:58 +01:00
Thomas Bernard 3bf2398903 miniupnpc-libevent: add upnpc_delete_port_mapping() 2014-11-14 12:39:15 +01:00
Thomas Bernard 8d5a9d72da miniupnpc/receivedata.c: zero src_addr to silence valgrind 2014-11-13 14:53:50 +01:00
Thomas Bernard 8b22c4d7f4 miniupnpc/receivedata.c: clean up comments 2014-11-13 14:52:58 +01:00
Thomas Bernard b6438f2f72 miniupnpc: API_VERSION 11 2014-11-13 11:28:20 +01:00