Re: Getting Too Long Error

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/6/20 Rucha <[email protected]>:
> 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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.