8 #ifndef NDN_ENCODING_FORWARD_HELPER_H 9 #define NDN_ENCODING_FORWARD_HELPER_H 144 #endif // NDN_ENCODING_FORWARD_HELPER_H struct interest_options interest_options_t
Interest options which the forwarder cares.
uint8_t hop_limit
Definition: forwarder-helper.h:37
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.
Definition: forwarder-helper.c:20
uint64_t lifetime
Definition: forwarder-helper.h:35
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.
Definition: forwarder-helper.c:163
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.
Definition: forwarder-helper.c:96
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.
Definition: forwarder-helper.c:43
uint64_t tlv_get_uint(uint8_t *buf, size_t buflen)
Decode an unsigned integer value.
Definition: forwarder-helper.c:86
uint32_t nonce
Definition: forwarder-helper.h:36
int tlv_check_type_length(uint8_t *buf, size_t buflen, uint32_t type)
Check the type and length of a TLV block.
Definition: forwarder-helper.c:65
uint8_t * tlv_interest_get_hoplimit_ptr(uint8_t *interest, size_t buflen)
Get the pointer to hop limit field of a Interest packet.
Definition: forwarder-helper.c:197
bool can_be_prefix
Definition: forwarder-helper.h:38
Interest options which the forwarder cares.
Definition: forwarder-helper.h:34
bool must_be_fresh
Definition: forwarder-helper.h:39