Hello,

I'm using the array-user template to implement a table. I tried to
start with a simple table of interfaces. In initTramosAgentPlugin
I do:

  /* read the config from an xml file */
  initConfig(&config, "tramos_config.xml", NULL);
    
  /* here we initialize all the tables we're planning on supporting */
  init_traIfTable(&config);

In the init_traIfTable function, I add all interfaces listed in config
to the traIfTable. I want to access the config data structure from my
set_* routines as well, so I added a config_p pointer to my row
context. I set this pointer to the config structure. When I try to
access this structure from any of the set_* routines, the structure is
empty/overwritten. What happend here? Was the structure freed because
the original thread was killed after finished with startup? How can I
get around this? Is there a better place for stuff like this?

An other question: after successful set, I want to write the config to
disk. This my take a little while (or not, depending on the system).
Whats the best way to do so?

Thanks in advance,
Arne



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to