![]() |
Contiki-NG
|
Functions | |
| int | snmp_ber_encode_type (snmp_packet_t *snmp_packet, uint8_t type) |
| Encodes a type. | |
| int | snmp_ber_encode_length (snmp_packet_t *snmp_packet, uint16_t length) |
| Encodes the length. | |
| int | snmp_ber_encode_integer (snmp_packet_t *snmp_packet, uint32_t integer) |
| Encodes an integer. | |
| int | snmp_ber_encode_timeticks (snmp_packet_t *snmp_packet, uint32_t timeticks) |
| Encodes a timeticks. | |
| int | snmp_ber_encode_string_len (snmp_packet_t *snmp_packet, const char *str, uint32_t length) |
| Encodes a string. | |
| int | snmp_ber_encode_oid (snmp_packet_t *snmp_packet, snmp_oid_t *oid) |
| Encodes a Oid. | |
| int | snmp_ber_encode_null (snmp_packet_t *snmp_packet, uint8_t type) |
| Encodes a null. | |
| int | snmp_ber_decode_type (snmp_packet_t *snmp_packet, uint8_t *type) |
| Decodes a type. | |
| int | snmp_ber_decode_length (snmp_packet_t *snmp_packet, uint8_t *length) |
| Decodes a length. | |
| int | snmp_ber_decode_integer (snmp_packet_t *snmp_packet, uint32_t *integer) |
| Decodes an integer. | |
| int | snmp_ber_decode_timeticks (snmp_packet_t *snmp_packet, uint32_t *timeticks) |
| Decodes a timeticks. | |
| int | snmp_ber_decode_string_len_buffer (snmp_packet_t *snmp_packet, const char **str, uint32_t *length) |
| Decodes a string. | |
| int | snmp_ber_decode_null (snmp_packet_t *snmp_packet) |
| Decodes a null. | |
| int | snmp_ber_decode_oid (snmp_packet_t *snmp_packet, snmp_oid_t *oid) |
| Decodes an OID. | |
This group contains the BER implementation
| int snmp_ber_decode_integer | ( | snmp_packet_t * | snmp_packet, |
| uint32_t * | integer ) |
Decodes an integer.
| snmp_packet | A pointer to the snmp packet |
| integer | A pointer to the integer |
Definition at line 353 of file snmp-ber.c.
References BER_DATA_TYPE_INTEGER.
Referenced by snmp_message_decode().
| int snmp_ber_decode_length | ( | snmp_packet_t * | snmp_packet, |
| uint8_t * | length ) |
Decodes a length.
| snmp_packet | A pointer to the snmp packet |
| length | A pointer to the length |
Definition at line 334 of file snmp-ber.c.
References snmp_packet_t::in, and snmp_packet_t::used.
Referenced by snmp_ber_decode_oid(), and snmp_message_decode().
| int snmp_ber_decode_null | ( | snmp_packet_t * | snmp_packet | ) |
Decodes a null.
| snmp_packet | A pointer to the snmp packet |
Definition at line 490 of file snmp-ber.c.
References snmp_packet_t::in, and snmp_packet_t::used.
Referenced by snmp_message_decode().
| int snmp_ber_decode_oid | ( | snmp_packet_t * | snmp_packet, |
| snmp_oid_t * | oid ) |
Decodes an OID.
| snmp_packet | pointer to the snmp packet |
| oid | A pointer to the OID |
Definition at line 428 of file snmp-ber.c.
References BER_DATA_TYPE_OBJECT_IDENTIFIER, snmp_oid_s::data, snmp_packet_t::in, snmp_oid_s::length, snmp_ber_decode_length(), snmp_ber_decode_type(), SNMP_MSG_OID_MAX_LEN, and snmp_packet_t::used.
Referenced by snmp_message_decode().
| int snmp_ber_decode_string_len_buffer | ( | snmp_packet_t * | snmp_packet, |
| const char ** | str, | ||
| uint32_t * | length ) |
Decodes a string.
| snmp_packet | A pointer to the snmp packet |
| str | A pointer to the string |
| length | A pointer to the string length |
Definition at line 359 of file snmp-ber.c.
References BER_DATA_TYPE_OCTET_STRING, snmp_packet_t::in, snmp_ber_decode_type(), and snmp_packet_t::used.
Referenced by snmp_message_decode().
| int snmp_ber_decode_timeticks | ( | snmp_packet_t * | snmp_packet, |
| uint32_t * | timeticks ) |
Decodes a timeticks.
| snmp_packet | A pointer to the snmp packet |
| timeticks | A pointer to the timeticks |
Definition at line 347 of file snmp-ber.c.
References BER_DATA_TYPE_TIMETICKS.
Referenced by snmp_message_decode().
| int snmp_ber_decode_type | ( | snmp_packet_t * | snmp_packet, |
| uint8_t * | type ) |
Decodes a type.
| snmp_packet | A pointer to the snmp packet |
| type | A pointer to the type |
Definition at line 321 of file snmp-ber.c.
References snmp_packet_t::in, and snmp_packet_t::used.
Referenced by snmp_ber_decode_oid(), snmp_ber_decode_string_len_buffer(), and snmp_message_decode().
| int snmp_ber_encode_integer | ( | snmp_packet_t * | snmp_packet, |
| uint32_t | integer ) |
Encodes an integer.
| snmp_packet | A pointer to the snmp packet |
| integer | A integer |
Definition at line 152 of file snmp-ber.c.
References BER_DATA_TYPE_INTEGER.
Referenced by snmp_message_encode().
| int snmp_ber_encode_length | ( | snmp_packet_t * | snmp_packet, |
| uint16_t | length ) |
Encodes the length.
| snmp_packet | A pointer to the snmp packet |
| length | A length |
Definition at line 96 of file snmp-ber.c.
References snmp_packet_t::max, snmp_packet_t::out, and snmp_packet_t::used.
Referenced by snmp_ber_encode_oid(), snmp_ber_encode_string_len(), and snmp_message_encode().
| int snmp_ber_encode_null | ( | snmp_packet_t * | snmp_packet, |
| uint8_t | type ) |
Encodes a null.
| snmp_packet | A pointer to the snmp packet |
| type | A type |
Definition at line 259 of file snmp-ber.c.
References snmp_packet_t::max, snmp_packet_t::out, snmp_ber_encode_type(), and snmp_packet_t::used.
Referenced by snmp_message_encode().
| int snmp_ber_encode_oid | ( | snmp_packet_t * | snmp_packet, |
| snmp_oid_t * | oid ) |
Encodes a Oid.
| snmp_packet | A pointer to the snmp packet |
| oid | A OID |
Definition at line 186 of file snmp-ber.c.
References BER_DATA_TYPE_OBJECT_IDENTIFIER, snmp_oid_s::data, snmp_oid_s::length, snmp_packet_t::max, snmp_packet_t::out, snmp_ber_encode_length(), snmp_ber_encode_type(), and snmp_packet_t::used.
Referenced by snmp_message_encode().
| int snmp_ber_encode_string_len | ( | snmp_packet_t * | snmp_packet, |
| const char * | str, | ||
| uint32_t | length ) |
Encodes a string.
| snmp_packet | A pointer to the snmp packet |
| str | A string |
| length | The string length |
Definition at line 158 of file snmp-ber.c.
References BER_DATA_TYPE_OCTET_STRING, snmp_packet_t::max, snmp_packet_t::out, snmp_ber_encode_length(), snmp_ber_encode_type(), and snmp_packet_t::used.
Referenced by snmp_message_encode().
| int snmp_ber_encode_timeticks | ( | snmp_packet_t * | snmp_packet, |
| uint32_t | timeticks ) |
Encodes a timeticks.
| snmp_packet | A pointer to the snmp packet |
| timeticks | A TimeTicks |
Definition at line 146 of file snmp-ber.c.
References BER_DATA_TYPE_TIMETICKS.
Referenced by snmp_message_encode().
| int snmp_ber_encode_type | ( | snmp_packet_t * | snmp_packet, |
| uint8_t | type ) |
Encodes a type.
| snmp_packet | A pointer to the snmp packet |
| type | A type |
Definition at line 83 of file snmp-ber.c.
References snmp_packet_t::max, snmp_packet_t::out, and snmp_packet_t::used.
Referenced by snmp_ber_encode_null(), snmp_ber_encode_oid(), snmp_ber_encode_string_len(), and snmp_message_encode().