SNMP_COEXISTANCE(3)

NAME
snmp_coexist_V2toV1, snmp_coexist_V1toV2 - Translate SNMP packets

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

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

int snmp_coexist_V2toV1(struct snmp_pdu PDU);

int snmp_coexist_V1toV2(struct snmp_pdu PDU);

DESCRIPTION
Both functions convert the specified packet to the appropriate version. These functions are designed to work in an SNMP agent, and convert requests to allow a V1 agent to communicate with a V2 manager.

RETURN VALUE
All functions return 1 upon success, 0 otherwise.

ERRORS
If any of these return unsuccessfully, snmp_api_error() will be set.

WARNINGS
These functions have never been tested.

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)