I Captured packet ...
should make it as response packet and send it back...
I am using the toolkit.
Does this make snmp response??i remove IP header and udp and give the rest
as PDU....
pdu = (netsnmp_pdu *)(pkt_data + (uh_len + ip_len));
response = snmp_pdu_create(SNMP_MSG_RESPONSE);
response = snmp_clone_pdu(pdu);
response->command = 2;
response->community = (u_char *) "public";
response->community_len = strlen((char *)response->community);
response->errstat = 0;
give me some idea...
thanks...
On Tue, Dec 16, 2008 at 6:49 AM, Wes Hardaker <
[email protected]> wrote:
> >>>>> On Mon, 15 Dec 2008 14:57:11 -0800, "ss ak" <[email protected]> said:
>
> sa> From the UDP packet ,what to transform to SNMP response...
>
> sa> How do i do and what fields I need to set..
> sa> Please give me some pointers and links to find get some ides...
>
> If you are using our tool-kit you don't need to worry about the packet
> and the library takes care of it.
>
> To get started please read our tutorials at:
>
> http://www.net-snmp.org/tutorial/
>
> --
> Wes Hardaker
> Sparta, Inc.
>
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users