Steffen,
The latest 5.2 release has a fix to this problem whereby snmp uses ticks
from "times()" instead of seconds from "time()" for snmpv3 timeliness on
supported architectures.  If you are using an older version of net-snmp,
you may wish to upgrade, or at least consider using the new
snmplib/snmpv3.c, which is what I'm doing for my older system.
If your architecture isn't supported, you'll need to add some
functionality to snmpv3.c to modify snmpv3starttime when your local time
changes.
Further note that there may be other "gotchas" when you change the time,
such as glitches in the snmp timer/alarm functions.  Just look for all
the places that use the "time", "localtime", or "gettimeofday"
functions.  All of these are potentially at risk when the system time
changes. Scary.

/jeff

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Steffen Hartmann
Sent: Wednesday, December 08, 2004 7:49 AM
To: [EMAIL PROTECTED]
Subject: Changing System Date

Hi,

I'm currently working on a project to make Net-SNMP
5.0.9 work on an Embedded Device using uClinux. It
works fine so far, but I've got a big problem
concerning changes of the system time. Our private
MIB-Tree includes an OID "systemTime" which makes it
possible to set the time of the embedded device. When
the systemTime is changed with a value greater than
150 seconds of the previous time, the snmp-Agent only
replys to SNMPGet-Requests with an
"outOfTimeWindow"-Exception (for security reasons, our
Net-SNMP-Agent only supports SNMPv3). I've found the
place where the times are compared in the snmpusm.c,
but I couldn't find out how to set the internal clock
of the Net-SNMP-Agent when a SystemTime-Change is
done.
In which variable or struct is the internel time of
the Agent stored so I can update it when a change of
the system time is performed?

Thanks,

Steffen


        

        
                
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier
anmelden: http://mail.yahoo.de


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to