View Single Post

  #3 (permalink)  
Old 06-20-2008
Dave Shield
 
Posts: n/a
Default Re: Getting Too Long Error

2008/6/20 Rucha <rucha_mahajan@persistent.co.in>:
> Here is the dump of pdu.
>
> (gdb) p pdu
> $1 = (netsnmp_pdu *) 0x951b398
> (gdb) p *$1


No - we're not interested in the internal data structure.
What it relevant here is the size of the PDU that's
put out over the wire.

Try running the application with the '-d' option,
to dump the raw incoming/outgoing packets.
*That* is the dump that I was talking about.


> 135 int length = sizeof(pdu);
> (gdb) n
> 137 printf("PDU Length = %d\n", length);
> (gdb) n
> PDU Length = 4


The variable 'pdu' is a pointer.
So yes - the size of it is almost certainly going to be 4.
(assuming a 32-bit O/S). That's not useful information.


What does the traffic on the wire look like.

Also - how are you setting up the administrative
settings for this request? (Community string,
or SNMPv3 user)

It also looks as if you are sending a GET request with
an empty varbind list. I.e. you are asking for nothing?

Dave

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

Reply With Quote