Dave:
        Yes, thanks, remove_trap_session() will do the trick, provided that I 
store 
the sesp pointer from sink ( global ) right after I call 
create_trap_session(). But remove_trap_session() won't call snmp_close() ( 
but will free the sink pointer ). Won't this lead to a memory leak ? I mean, 
snmp_open() doesn't allocate any memory that is freed by snmp_close() ? 

Thanks a lot.

On Thursday 06 December 2007 07:30:54 Dave Shield wrote:
> On 05/12/2007, Leonardo Pereira Santos <[EMAIL PROTECTED]> wrote:
> > 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.
>
> Try
>     'remove_trap_session()'
>
>
> Or it might be worth manipulating the snmpNotifyTable instead.
>
> Dave



-- 
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

Today Fortune tells us:
-----------------------
Q:      Why did the astrophysicist order three hamburgers?
A:      Because he was hungry.

-------------------------------------------------------------------------
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