Commit Graph

51 Commits

Author SHA1 Message Date
Thomas Bernard 16e9dc0323
minissdpd: CACHE-CONTROL must be minimum 1800s 2024-06-09 00:05:42 +02:00
Thomas Bernard e5c9f72195 minissdpd: fix error message 2022-10-22 20:15:26 +02:00
Thomas Bernard c914193a05
minissdpd.c: use getopt() to parse argc/argv
fixes #576
2021-11-05 00:29:59 +01:00
Thomas Bernard f91824c270
minissdpd.c: fix usage messages
fixes #575
2021-11-05 00:08:42 +01:00
Thomas Bernard 861f95c634 2021 and https 2021-11-05 00:06:21 +01:00
Thomas Bernard 71830c711a
show version
fixes #503
2021-01-15 20:25:03 +01:00
Thomas Bernard d2ee52e4d9
improve syslog 2020-06-08 13:17:16 +02:00
Thomas Bernard e39549d6bb
send the startup M-SEARCH message on the right interface(s)
fixes #464
2020-06-06 22:21:43 +02:00
Thomas Bernard 4a1b41c1cb
minissdpd: NO_BACKGROUND_NO_PIDFILE option
fixes #468
2020-06-06 21:55:44 +02:00
Thomas Bernard cd506a67e1
updateDevice() remove element from the list when realloc fails 2018-12-18 20:23:47 +01:00
Steven Mestdagh 9066896195
avoid off-by-one buffer overread 2018-12-17 20:40:03 +01:00
Thomas Bernard fb24c428e7 => 2018 + https 2018-02-03 22:56:41 +01:00
Thomas Bernard f9f3daa94d Ignore the version of devices while answering to requests 2018-02-03 22:51:09 +01:00
Thomas BERNARD 73304da571 minissdpd: ignore ST/NT version when answering to local clients 2018-02-03 18:52:06 +01:00
Thomas Bernard b11ed5a37e minissdpd: Properly parse when several requests are read() at once 2018-02-03 18:24:11 +01:00
yangfl d492fa39ef fix typo 2018-01-09 09:33:31 +08:00
Thomas Bernard bab8737dce LOG_PERROR does not exist on Solaris 2016-11-11 08:53:12 -05:00
Thomas Bernard b238cade9a minissdpd: Fix broken overflow test (p+l > buf+n) thanks to Salva Piero 2016-03-01 19:15:11 +01:00
Thomas BERNARD 3fd57ddbb4 fix usage string + vim config 2016-01-17 18:02:57 +01:00
Thomas Bernard 9e24d3cccb minissdpd: add a notification mode. Bump to version 1.5
fixes #139
2016-01-13 16:14:02 +01:00
Thomas Bernard 6d6ae918e3 minissdpd.c: improve syslog 2016-01-13 16:14:02 +01:00
Thomas Bernard da9403af2f use 'enum request_type' for minissdpd request types 2016-01-13 16:14:02 +01:00
Thomas Bernard eca7b7aabb minissdpd.c: set BOOTID.UPNP.ORG to start timestamp 2016-01-13 16:14:02 +01:00
Thomas Bernard 8ec33b7691 add -f command line option to filter for a specific device type
fixes #138
2015-08-06 16:07:33 +02:00
Thomas Bernard aefeada189 minissdpd: added command 0 (version) 2015-08-06 15:20:30 +02:00
Thomas Bernard ed4a01d2d6 minissdpd: set multicast TTL to 2 by default and configurable
fixes #140
2015-07-21 17:40:51 +02:00
Thomas Bernard a43beeccf1 fix minor typo 2015-05-27 15:31:49 +02:00
ted shroyer 72f09b6582 Using setting for unix socket response buffer size
On networks with about 200 upnp devices, search type 3 (all) truncates the full response.  Adding a configuration setting that allows for building minissdpd to have a larger buffer for the response.
2015-05-26 14:31:18 -05:00
Thomas Bernard c7d7efd230 fix realloc failure issues detected thanks to cppcheck 2015-02-08 10:23:22 +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 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 3665f1913d minissdpd: Cosmetic changes 2014-11-28 15:49:32 +01:00
Thomas Bernard ecb382533c minissdpd.c: minor fixes when IPv6 is disabled at compile time 2014-11-06 11:16:20 +01:00
Thomas Bernard 97c001d464 add use(less ?)ful comments 2014-10-06 14:44:45 +02:00
Thomas BERNARD 140ee8d220 minissdpd.c: Initialize pointers to NULL (fix) 2014-04-12 10:05:42 +02:00
Thomas Bernard bd83aa90c5 minissdpd: accept request of type 3 with 0 lenght argument 2014-02-28 20:23:51 +01:00
Thomas Bernard 04752985cc minissdpd.c: Discover devices on the network at startup 2014-02-03 16:52:38 +01:00
Thomas Bernard 178f0b8c4d minissdpd.c: silently ignore EAGAIN, EWOULDBLOCK, EINTR of recv calls 2014-02-03 16:51:25 +01:00
Thomas Bernard 612d0e44fb minissdpd.c: improve comments and logging 2014-02-03 16:50:37 +01:00
Thomas Bernard 7f2f0efd55 Set sockets non blocking 2012-05-24 18:21:24 +02:00
Thomas Bernard fe37de7e2c Clean signal handling 2012-05-24 18:17:31 +02:00
Thomas Bernard bf0e1c509e Remove a few signed/unsigned compares 2012-05-08 23:10:25 +02:00
Thomas Bernard 2b958b85e5 Handle ssdp:update messages and update logging 2012-04-10 00:28:27 +02:00
Thomas Bernard a3600d5e7b Added -ansi to compilation flags 2012-04-10 00:26:48 +02:00
Shawn Landen ece31957f9 remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08:00
Thomas Bernard 7846aaa4c2 minissdpd: daemonize after init
In order to fail launch and return an error to the parent process
if the init fails.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644509
2011-10-07 11:36:07 +02:00
Thomas Bernard fd96a3ddcd minissdpd: unlink unix socket before binding
see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644510
2011-10-07 11:29:22 +02:00