[collectd] utils_dns patch
king2 at kaluga.ru
Wed Jun 11 15:07:12 CEST 2008
You wrote 7 июня 2008 г., 22:22:58:
>> On old FreeBSD T_TSIG is not defined in
>> /usr/include/arpa/nameser_compat.h (see mantis, issue #21).
>> This patch will resolve this problem.
>> +#ifndef T_TSIG
>> +# define T_TSIG 250
> where is that 250 coming from? On my Debian machine it's 24:
> -- 8< --
> octo at leeloo:~ $ grep -r ns_t_sig /usr/include/arpa/
> /usr/include/arpa/nameser_compat.h:#define T_SIG ns_t_sig
> /usr/include/arpa/nameser.h: ns_t_sig = 24, /* Security signature. */
> The code uses the value of the `__BIND' define to determine which query
> types are present. Could you check which value that define has? It'd be
> most consistent to check that for that case, too.
Definitely. In FreeBSD ns_t_sig is also 24.
But I'm talking about ns_t_tsig (note extra 't'), which is not mentioned in
FreeBSD 5.4, and equal to 250 in later versions.
Oleg mailto:king2 at kaluga.ru
More information about the collectd