projects
/
project
/
mdnsd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8a70b2b
)
Revert "mdnsd: interface: enable looped back messages"
author
John Crispin
<john@phrozen.org>
Mon, 24 Oct 2016 16:43:16 +0000
(18:43 +0200)
committer
John Crispin
<john@phrozen.org>
Mon, 24 Oct 2016 16:43:16 +0000
(18:43 +0200)
This reverts commit
8a70b2b47dd328f8180e5ecaa7bdc817f574a81b
.
interface.c
patch
|
blob
|
history
diff --git
a/interface.c
b/interface.c
index 9ca85e1a6dc343a9ecb055cf90df64c75de83566..c8d89721d05f15f6e248732f8b694be700f2f45f 100644
(file)
--- a/
interface.c
+++ b/
interface.c
@@
-315,7
+315,7
@@
interface_mcast_setup4(struct interface *iface)
{
struct ip_mreqn mreq;
uint8_t ttl = 255;
{
struct ip_mreqn mreq;
uint8_t ttl = 255;
- int
yes = 1
;
+ int
no = 0
;
struct sockaddr_in sa = { 0 };
int fd = iface->fd.fd;
struct sockaddr_in sa = { 0 };
int fd = iface->fd.fd;
@@
-345,7
+345,7
@@
interface_mcast_setup4(struct interface *iface)
return -1;
}
return -1;
}
- if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, &
yes, sizeof(yes
)) < 0)
+ if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, &
no, sizeof(no
)) < 0)
fprintf(stderr, "ioctl failed: IP_MULTICAST_LOOP\n");
return 0;
fprintf(stderr, "ioctl failed: IP_MULTICAST_LOOP\n");
return 0;
@@
-356,7
+356,7
@@
interface_socket_setup6(struct interface *iface)
{
struct ipv6_mreq mreq;
int ttl = 255;
{
struct ipv6_mreq mreq;
int ttl = 255;
- int
yes = 1
;
+ int
no = 0
;
struct sockaddr_in6 sa = { 0 };
int fd = iface->fd.fd;
struct sockaddr_in6 sa = { 0 };
int fd = iface->fd.fd;
@@
-379,7
+379,7
@@
interface_socket_setup6(struct interface *iface)
return -1;
}
return -1;
}
- if (setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, &
yes, sizeof(yes
)) < 0)
+ if (setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, &
no, sizeof(no
)) < 0)
fprintf(stderr, "ioctl failed: IPV6_MULTICAST_LOOP\n");
return 0;
fprintf(stderr, "ioctl failed: IPV6_MULTICAST_LOOP\n");
return 0;