~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to agent/mibgroup/agent/nsCache.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-05-10 22:20:23 UTC
  • mto: (1.4.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20070510222023-3fr07xb9i17xvq32
Tags: upstream-5.3.1
ImportĀ upstreamĀ versionĀ 5.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 
47
47
oid nsCacheTable_oid[]      = { 1, 3, 6, 1, 4, 1, 8072, 1, 5, 3};
48
48
 
 
49
extern struct snmp_alarm *
 
50
sa_find_specific(unsigned int clientreg);
 
51
 
49
52
 
50
53
void
51
54
init_nsCache(void)
381
384
            switch (table_info->colnum) {
382
385
            case NSCACHE_TIMEOUT:
383
386
                cache_entry->timeout = *request->requestvb->val.integer;
 
387
                /*
 
388
                 * check for auto repeat
 
389
                 */
 
390
                if (cache_entry->timer_id) {
 
391
                    struct snmp_alarm * sa =
 
392
                        sa_find_specific(cache_entry->timer_id);
 
393
                    if (NULL != sa)
 
394
                        sa->t.tv_sec = cache_entry->timeout;
 
395
                }
384
396
                break;
385
397
 
386
398
            case NSCACHE_STATUS: