Contiki-NG
Data Fields
snmp_varbind_s::snmp_varbind_val_u::snmp_varbind_string_s Struct Reference

A struct that contains the string. More...

#include <os/net/app-layer/snmp/snmp.h>

Data Fields

const char * string
 A pointer to the string value from this varbind. More...
 
uint32_t length
 The string length. More...
 

Detailed Description

A struct that contains the string.

Definition at line 181 of file snmp.h.

Field Documentation

◆ length

uint32_t snmp_varbind_s::snmp_varbind_val_u::snmp_varbind_string_s::length

The string length.

Remarks
Do not use strlen on the string since it might not be null terminated

Definition at line 193 of file snmp.h.

◆ string

const char* snmp_varbind_s::snmp_varbind_val_u::snmp_varbind_string_s::string

A pointer to the string value from this varbind.

Remarks
This pointer points to a string that cannot be changed

Definition at line 187 of file snmp.h.