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

@ -31,13 +31,13 @@
int OpenAndConfSSDPReceiveSocket(void);
int OpenAndConfSSDPNotifySocket(in_addr_t addr);
int OpenAndConfSSDPNotifySocket(struct lan_addr_s *iface);
void SendSSDPNotifies(int s, const char *host, unsigned short port, unsigned int lifetime);
void ProcessSSDPRequest(int s, unsigned short port);
int SendSSDPGoodbyes(void);
int SendSSDPGoodbyes(int s);
int SubmitServicesToMiniSSDPD(const char *host, unsigned short port);