Thanks Leo.

So every time if I want to change the receiver's address (ex. By cli), I
just call " snmpd_parse_config_trapsink ", and pass the ip address at the
input?  Am I right?

Thank you

Li

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Leo Lei
Sent: Wednesday, August 23, 2006 9:33 PM
To: net-snmp-coders
Subject: Re: RE: how to set trap receiver's ip address in code for
embeddedsystem


Li Gan#:

        

======= 2006-08-24 04:12:29 =======

>Thanks, that's also what I thought, the question is which one is the config
>directive handler for config trap receiver's ip address?

just grep -r "trapsink" in the source directory.

agent/agent_read_config.c:        register_app_config_handler("trapsink",
agent/agent_read_config.c:
snmpd_parse_config_trapsink,
agent/agent_read_config.c:
snmpd_free_trapsinks,

agent/agent_trap.c:snmpd_parse_config_trapsink(const char *token, char
*cptr)


= = = = = = = = = = = = = = = = = = = =

!!!!!!!!!!!!!!!!        Leo Lei
!!!!!!!!!!!!!!!!        2006-08-24





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to