SNMP_PACKET_DUMP(3)

NAME
snmp_dump, snmp_dump_packet - SNMP Network Packet Dumping Routines

SYNOPSIS
cc [ flag ... ] file ... -lsnmp [ library ... ]

#include <sys/types.h>
#include <snmp/snmp.h>

void snmp_dump_packet(int i);

void snmp_dump(unsigned char * Buf, int BufLen, char *How, struct in_addr Who);

DESCRIPTION
snmp_dump_packet() sets the boolean value for whether or not snmp_dump() should do anything to the value of i.

snmp_dump() prints BufLen bytes of Buf, with a header describing where it is going from/to. The destination machine is Who, and a description of how the data is moving is passed as How.

snmp_dump_packet(Buf, 15, "Sending", &from)

would result in a header that says

Sending 15 bytes <-> host.in.from:

RFCS
Related RFCs: 1065, 1066, 1067
Related SNMPv2 RFCs: 1901, 1902, 1902, 1904, 1905, 1906, 1907, 1908, 1909

RELATED URLS
CMU Networking Group: http://www.net.cmu.edu/
CMU SNMP Home Page: http://www.net.cmu.edu/projects/snmp

SEE ALSO
snmp_api(3), snmp_api_errors(3), snmp_client(3), snmp_coexistance(3), snmp_error(3), snmp_extra(3), snmp_mib(3), snmp_mibii(3), snmp_mini_client(3), snmp_msg(3), snmp_packet_dump(3), snmp_pdu(3), snmp_sess_api(3), snmp_vars(3), snmp_version_info(3), snmp_oid(5) snmp(3)