backendStatus.size());
return sendTrap(d_trapPipe[1], varList);
-#endif /* HAVE_NET_SNMP */
+#else
return true;
+#endif /* HAVE_NET_SNMP */
}
bool DNSDistSNMPAgent::sendCustomTrap(const std::string& reason)
reason.size());
return sendTrap(d_trapPipe[1], varList);
-#endif /* HAVE_NET_SNMP */
+#else
return true;
+#endif /* HAVE_NET_SNMP */
}
bool DNSDistSNMPAgent::sendDNSTrap(const DNSQuestion& dq, const std::string& reason)
reason.size());
return sendTrap(d_trapPipe[1], varList);
-#endif /* HAVE_NET_SNMP */
+#else
return true;
+#endif /* HAVE_NET_SNMP */
}
DNSDistSNMPAgent::DNSDistSNMPAgent(const std::string& name, const std::string& masterSocket): SNMPAgent(name, masterSocket)
#ifdef SO_TIMESTAMP
int on=1;
return setsockopt(fd, SOL_SOCKET, SO_TIMESTAMP, (char*)&on, sizeof(on)) == 0;
-#endif
+#else
return true; // we pretend this happened.
+#endif
}
bool setTCPNoDelay(int sock)
sizeof(cpuset),
&cpuset);
# endif
-#endif /* HAVE_PTHREAD_SETAFFINITY_NP */
+#else
return ENOSYS;
+#endif /* HAVE_PTHREAD_SETAFFINITY_NP */
}