ndn-lite
Functions
forwarder-helper.c File Reference
#include "forwarder-helper.h"
#include "tlv.h"
#include "../ndn-error-code.h"
#include "../ndn-constants.h"
#include <string.h>
#include <stdarg.h>
#include <limits.h>
#include "data.h"
#include "interest.h"
#include "signed-interest.h"

Functions

size_t tlv_get_tlvar (uint8_t *buf, size_t buflen, uint32_t *var)
 Get the first variable of type or length from a TLV encoded form. More...
 
uint8_t * tlv_get_type_length (uint8_t *buf, size_t buflen, uint32_t *type, uint32_t *length)
 Get type and length from a TLV encoded form. More...
 
int tlv_check_type_length (uint8_t *buf, size_t buflen, uint32_t type)
 Check the type and length of a TLV block. More...
 
uint64_t tlv_get_uint (uint8_t *buf, size_t buflen)
 Decode an unsigned integer value. More...
 
int tlv_interest_get_header (uint8_t *interest, size_t buflen, interest_options_t *options, uint8_t **name, size_t *name_len)
 Get the name and options of an Interest packet. More...
 
int tlv_data_get_name (uint8_t *data, size_t buflen, uint8_t **name, size_t *name_len)
 Get the name of a Data packet. More...
 
uint8_t * tlv_interest_get_hoplimit_ptr (uint8_t *interest, size_t buflen)
 Get the pointer to hop limit field of a Interest packet. More...