ssdp: send a full byebye + alive set when a new interface comes online

If an interface comes online after startup, we really need to send a
complete byebye + alive set on that interface, but we don't want to do
it for other interfaces.  So do it as the interfaces come up, and
skip it for interfaces that existed before the reload.
This commit is contained in:
Justin Maggard
2014-02-26 15:04:46 -08:00
parent a7c8ffb88d
commit fe7c26da2f
6 changed files with 85 additions and 76 deletions

View File

@@ -53,9 +53,6 @@
#include "config.h"
#include "upnpglobalvars.h"
/* LAN address */
/*const char * listen_addr = 0;*/
/* startup time */
time_t startup_time = 0;
@@ -78,6 +75,7 @@ char presentationurl[PRESENTATIONURL_MAX_LEN];
int n_lan_addr = 0;
struct lan_addr_s lan_addr[MAX_LAN_ADDR];
int sssdp = -1;
/* Path of the Unix socket used to communicate with MiniSSDPd */
const char * minissdpdsocketpath = "/var/run/minissdpd.sock";