Contiki-NG
Functions
snmp-ber.c File Reference

 SNMP Implementation of the BER encoding
More...

#include "contiki.h"
#include "snmp.h"
#include "snmp-ber.h"

Go to the source code of this file.

Functions

int snmp_ber_encode_type (snmp_packet_t *snmp_packet, uint8_t type)
 Encodes a type. More...
 
int snmp_ber_encode_length (snmp_packet_t *snmp_packet, uint16_t length)
 Encodes the length. More...
 
int snmp_ber_encode_timeticks (snmp_packet_t *snmp_packet, uint32_t timeticks)
 Encodes a timeticks. More...
 
int snmp_ber_encode_integer (snmp_packet_t *snmp_packet, uint32_t number)
 Encodes an integer. More...
 
int snmp_ber_encode_string_len (snmp_packet_t *snmp_packet, const char *str, uint32_t length)
 Encodes a string. More...
 
int snmp_ber_encode_oid (snmp_packet_t *snmp_packet, snmp_oid_t *oid)
 Encodes a Oid. More...
 
int snmp_ber_encode_null (snmp_packet_t *snmp_packet, uint8_t type)
 Encodes a null. More...
 
int snmp_ber_decode_type (snmp_packet_t *snmp_packet, uint8_t *type)
 Decodes a type. More...
 
int snmp_ber_decode_length (snmp_packet_t *snmp_packet, uint8_t *length)
 Decodes a length. More...
 
int snmp_ber_decode_timeticks (snmp_packet_t *snmp_packet, uint32_t *timeticks)
 Decodes a timeticks. More...
 
int snmp_ber_decode_integer (snmp_packet_t *snmp_packet, uint32_t *num)
 Decodes an integer. More...
 
int snmp_ber_decode_string_len_buffer (snmp_packet_t *snmp_packet, const char **str, uint32_t *length)
 Decodes a string. More...
 
int snmp_ber_decode_oid (snmp_packet_t *snmp_packet, snmp_oid_t *oid)
 Decodes an OID. More...
 
int snmp_ber_decode_null (snmp_packet_t *snmp_packet)
 Decodes a null. More...
 

Detailed Description

 SNMP Implementation of the BER encoding
Author
Yago Fontoura do Rosario <yago..nosp@m.rosa.nosp@m.rio@h.nosp@m.otma.nosp@m.il.co.nosp@m.m.br

Definition in file snmp-ber.c.