Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Maggard <jmaggard@users.sourceforce.net>2012-02-14 02:39:54 +0400
committerJustin Maggard <jmaggard@users.sourceforce.net>2012-02-14 02:39:54 +0400
commit0051e0b53cdc98124b5e463f82305ba6aba04ecf (patch)
tree357b6750fca0c0c8481902fc52f8779b7bd77b3a
parente92d19b0ff93ef1210f748f2a41370020107238d (diff)
* Use proper SSDP TTL of 4, instead of 1.
-rw-r--r--minissdp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/minissdp.c b/minissdp.c
index f5a8c19..da21141 100644
--- a/minissdp.c
+++ b/minissdp.c
@@ -133,6 +133,7 @@ OpenAndConfSSDPNotifySocket(in_addr_t addr)
int s;
unsigned char loopchar = 0;
int bcast = 1;
+ uint8_t ttl = 4;
struct in_addr mc_if;
struct sockaddr_in sockname;
@@ -157,6 +158,8 @@ OpenAndConfSSDPNotifySocket(in_addr_t addr)
close(s);
return -1;
}
+
+ setsockopt(s, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl));
if(setsockopt(s, SOL_SOCKET, SO_BROADCAST, &bcast, sizeof(bcast)) < 0)
{