Unimplemented features

Currently, the filesystem and persistent storage areas are left undone, to be implemented by the application.

The SNMP library package is intended to support client and agent code alike. It therefore contains lots of assumptions about the presence of persistent storage ie. a filesystem. Currently, by default, eCos has no such thing, so those areas have been simply commented out and made to return empty lists or say “no data here.”

Specifically, PACKAGES/net/snmp/lib/VERSION/src/parse.c contains code to enumerate MIB files discovered in the system MIB directories (“/usr/share/snmp/mibs”), and read them all in, building data structures that are used by client programs to interrogate an agent. This is not required in an agent, so the routine which enumerates the directories returns an empty list.

PACKAGES/net/snmp/lib/VERSION/src/read_config.c contains two systems, the first reads various configuration files (“/usr/share/snmp/snmp.conf”, “/usr/share/snmp/snmpd.conf”, “/usr/local/share/snmp/snmpd.local.conf” and the like) to control both the SNMP applications and the agent in the usual UNIX fashion. The second system contains code to record persistent data as files in a directory (typically “/var/ucd-snmp/”) thus preserving state permanently. Neither of these is supported because there is no filesystem present; as required, a cleaner interface to permit application code to manage persistent data will be developed in consultation with customers.