Mailing List Archive

Please help me with ntp_caps
In an effort to add more client side options, I need to modify
the ntp_caps struct in libnessus/comm.h. When I add new vars to
that struct, uninstall nessus, compile the libraries, and install them
(adding the lib path to /etc/ld.so.conf and running /sbin/ldconfig),
my other code in nessus/d can't see them.

Is the structure/vars of ntp_caps hard coded into the configs somewhere?
Or, may the code is not being linked to the libraries correctly?

Any suggestions? (Renaud? Mike?)

Thus far, I have:
1. added "int dep:1;" as the last var in the ntp_caps struct in
libnessus/comm.h
2. added "else if(!strcmp( t, "dep" )) caps->dep = 1;" to nessusd/comm.c
Diffs attached...

Thanks.

----------------------
William Heinbockel
Information Security Incident Response Assistant
Co-op Risk & Safety Management
Rochester Institute of Technology
E-mail: wjh3710@rit.edu
Re: Please help me with ntp_caps [ In reply to ]
On Tue, Jan 14, 2003 at 01:26:43PM -0500, WILLIAM HEINBOCKEL wrote:
> In an effort to add more client side options, I need to modify
> the ntp_caps struct in libnessus/comm.h. When I add new vars to
> that struct, uninstall nessus, compile the libraries, and install them
> (adding the lib path to /etc/ld.so.conf and running /sbin/ldconfig),
> my other code in nessus/d can't see them.
>
> Is the structure/vars of ntp_caps hard coded into the configs somewhere?
> Or, may the code is not being linked to the libraries correctly?
>
> Any suggestions? (Renaud? Mike?)
>
> Thus far, I have:
> 1. added "int dep:1;" as the last var in the ntp_caps struct in
> libnessus/comm.h
> 2. added "else if(!strcmp( t, "dep" )) caps->dep = 1;" to nessusd/comm.c
> Diffs attached...

The struct ntp_caps is redeclared in nessus-core/include/nessus-devel.h
(yes, that's UGLY). You need to modify this one as well.