During this season of giving, you can show your support for the NTP Project by making a donation to Network Time Foundation.

Status Report 02 (June 20th, 2008)

Current Milestones

Here I will list all project milestones that I started working or that I finished since the last status report.

Create Instance of Loadable Agent (#02)

This task has been completed today. I worked on this during the last two weeks and managed to set up a basic development environment using Net-SNMP 5.4.1.1 (latest version). The agent starts as a background process and connects to the main snmpd process using AgentX technology. A sample MIB object can be queried successfully while the subagent is started and gets rejected when I stop it.

Since this part of the project depends heavily on net-snmp, I am unsure how to integrate it into the ntpd sourcetree. I will have to discuss with Harlan how to enable configure to find out where the Net-SNMP sources are (or allow the user to specify the location of the net-snmp source tree) and then keep an eye on new net-snmp versions.

Upcoming Milestones

This section will show which milestones I am going to start working on before the next status report is due.

Implement Mode 6 handler (sending/receiving) (#03)

This should result in a libntpq.a file which can be linked to applications that need to query an ntpd process (locally or on a remote system) using mode 6 packets. The basic idea is to re-use the ntpq-ops.c and probably ntpq.c source files for building the "library version of ntpq". I will add a set of wrapper functions that allow to easily open, use and close "connections" to ntpd, like:


my_conn = open_server("127.0.0.1"); 
read_ntp_sysvar(my_conn, "offset", strvalue);
printf("Current NTP offset : %s ", strvalue);
close_server(my_conn);

-- HeikoGerstung - 24 Jun 2008
Topic revision: r1 - 24 Jun 2008, HeikoGerstung
Copyright © by the contributing authors.Use of this website indicates your agreement with, and acceptance of, the PrivacyPolicy, the WikiDisclaimer, and the PrivateWebPolicy.