1 --- minidlna-1.3.3/minissdp.c.orig
2 +++ minidlna-1.3.3/minissdp.c
5 if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &i, sizeof(i)) < 0)
6 DPRINTF(E_WARN, L_SSDP, "setsockopt(udp, SO_REUSEADDR): %s\n", strerror(errno));
9 if (setsockopt(s, IPPROTO_IP, IP_PKTINFO, &i, sizeof(i)) < 0)
10 DPRINTF(E_WARN, L_SSDP, "setsockopt(udp, IP_PKTINFO): %s\n", strerror(errno));
12 memset(&sockname, 0, sizeof(struct sockaddr_in));
13 sockname.sin_family = AF_INET;
14 sockname.sin_port = htons(SSDP_PORT);
17 /* NOTE: Binding a socket to a UDP multicast address means, that we just want
18 * to receive datagramms send to this multicast address.
19 * To specify the local nics we want to use we have to use setsockopt,
21 char *st = NULL, *mx = NULL, *man = NULL, *mx_end = NULL;
23 socklen_t len_r = sizeof(struct sockaddr_in);
26 char cmbuf[CMSG_SPACE(sizeof(struct in_pktinfo))];
27 struct iovec iovec = {
30 else if (st && (st_len > 0))
35 char host[40] = "127.0.0.1";