Determine Request PDU Size

Brandon Phelps <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Global Linking Solutions
Message-ID <[email protected]>
Hello,

I am using the net-snmp C API and would like to determine the size of my request and response PDUs so that I can keep track of how much data my
application sends and receives.  Could someone shed some light on how I might accomplish this?  I'd like to get the numbers that are equivalent to the
total packet sizes I see in Wireshark, etc.

I've tried using the sizeof(*pdu), but this always seems to result in the same number (272).

Any help would be appreciated!

Thanks,
Brandon

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
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.