Asn operation interface for NET-SNMP

Source: Internet
Author: User
Tags snmp api

/* Port the net-snmp API */
Int asn_check_packet (uchar * Pkt, size_t Len );
Uchar * asn_parse_int (uchar * data, size_t * datalength, uchar * type, long * INTP,
Size_t intsize );
Uchar * asn_build_int (uchar * data, size_t * datalength, uchar type, long * intsize,
Size_t );
Uchar * asn_parse_unsigned_int (uchar * data, size_t * datalength, uchar * type,
Ulong * INTP, size_t intsize );
Uchar * asn_build_unsigned_int (uchar * data, size_t * datalength, uchar type,
Ulong * INTP, size_t intsize );
Uchar * asn_parse_string (uchar * data, size_t * datalength, uchar * type,
Uchar * string, size_t * strlength );
Uchar * asn_build_string (uchar * data, size_t * datalength, uchar type,
Const uchar * string, size_t strlength );
Uchar * asn_parse_header (uchar * data, size_t * datalength, uchar * type );
Uchar * asn_parse_sequence (uchar * data, size_t * datalength, uchar * type, uchar expected_type,/* must be this type */
Const char * estr);/* error message prefix */
Uchar * asn_build_header (uchar * data, size_t * datalength, uchar type, size_t length );
Uchar * asn_build_sequence (uchar * data, size_t * datalength, uchar type, size_t length );
Uchar * asn_parse_length (uchar * data, ulong * length );
Uchar * asn_build_length (uchar * data, size_t * datalength, size_t length );
Uchar * asn_parse_objid (uchar * data, size_t * datalength, uchar * type, ulong * objid,
Size_t * objidlength );
Uchar * asn_build_objid (uchar * data, size_t * datalength, uchar type, ulong * objid,
Size_t objidlength );
Uchar * asn_parse_null (uchar * data, size_t * datalength, uchar * type );
Uchar * asn_build_null (uchar * data, size_t * datalength, uchar type );
Uchar * asn_parse_bitstring (uchar * data, size_t * datalength, uchar * type,
Uchar * string, size_t * strlength );
Uchar * asn_build_bitstring (uchar * data, size_t * datalength, uchar type,
Uchar * string, size_t strlength );
Uchar * asn_parse_unsigned_int64 (uchar * data, size_t * datalength, uchar * type,
Struct counter64 * CP, size_t countersize );
Uchar * asn_build_unsigned_int64 (uchar * data, size_t * datalength, uchar type,
Struct counter64 * CP, size_t countersize );
Uchar * asn_parse_signed_int64 (uchar * data, size_t * datalength, uchar * type,
Struct counter64 * CP, size_t countersize );
Uchar * asn_build_signed_int64 (uchar * data, size_t * datalength, uchar type,
Struct counter64 * CP, size_t countersize );
Uchar * asn_build_float (uchar * data, size_t * datalength, uchar type, float *,
Size_t );
Uchar * asn_parse_float (uchar * data, size_t * datalength, uchar * type, float * floatp,
Size_t floatsize );
Uchar * asn_build_double (uchar * data, size_t * datalength, uchar type, double * doublep,
Size_t doublesize );
Uchar * asn_parse_double (uchar * data, size_t * datalength, uchar * type,
Double * doublep, size_t doublesize );

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.