-/* $OpenBSD: rad.c,v 1.8 2018/07/15 09:28:21 florian Exp $ */
+/* $OpenBSD: rad.c,v 1.9 2018/07/18 14:43:34 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
char *saved_argv0;
int pipe_main2frontend[2];
int pipe_main2engine[2];
- int icmp6sock, on = 1;
+ int icmp6sock, on = 1, off = 0;
int frontend_routesock, rtfilter;
int control_fd;
sizeof(on)) < 0)
fatal("IPV6_RECVHOPLIMIT");
+ if (setsockopt(icmp6sock, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, &off,
+ sizeof(off)) < 0)
+ fatal("IPV6_RECVHOPLIMIT");
+
/* only router advertisements and solicitations */
ICMP6_FILTER_SETBLOCKALL(&filt);
ICMP6_FILTER_SETPASS(ND_ROUTER_ADVERT, &filt);