Hello all.
I need to manipulate ( add/remove ) a trapsink from within the agent itself. 
I'm using the create_trap_session function, and it works fine, the specified 
host gets the traps. I can't figure out how to remove this sink when I don't 
want to receive the traps anyome though.
The snmpd_free_trapsinks function will remove all sinks added internally ( no 
callback from the Notification MIB ), but I don't want that, I want to remove 
a specific sink. I'm trying to tell them apart using the sink.sesp->peername 
and sink.sesp->remote_port pointers, but the peername is always null. Is 
there a way to tell the sinks apart ? Or do I need to modify my code to store 
the sinks ( agent/agent_trap.c ) global pointer just after I called 
create_trap_session so I can free it later ? Yes, I need to update the next 
pointers so not to break the chained list.

Thank you very much.

-- 
This is Linux country.
On a quiet night, you can hear Windows reboot.

Leonardo Pereira Santos     |_|0|_|
Engenheiro de Projetos      |_|_|0|
PD3 Tecnologia              |0|0|0|
av. Para 330/202
(51) 3337 1237
Porto Alegre, RS - Brasil

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to