Commit 2eb7e98b authored by Sten Spans's avatar Sten Spans

silence CDP1 warning

CDPv1 and CDPv2 share multicast addrs,
triggering duplicate multicast de-registrations.
This silences the warning.
parent aafc5e67
......@@ -750,7 +750,7 @@ void parent_multi(struct rawfd *rfd, struct proto *protos, int op) {
memcpy(ifr.ifr_addr.sa_data, protos[p].dst_addr, ETHER_ADDR_LEN);
if ((ioctl(sock, (op) ? SIOCADDMULTI: SIOCDELMULTI, &ifr) < 0) &&
(errno != EADDRINUSE))
(errno != EADDRINUSE) && (p != PROTO_CDP1))
my_loge(CRIT, "unable to change %s multicast on %s",
protos[p].name, rfd->name);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment