Contiki-NG
Loading...
Searching...
No Matches
snmp_header_s::snmp_msg_community Struct Reference

Struct to wrap the community. More...

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

Data Fields

const char * community
 A pointer to the community.
 
uint32_t length
 The string length.
 

Detailed Description

Struct to wrap the community.

Definition at line 101 of file snmp.h.

Field Documentation

◆ community

const char* snmp_header_s::snmp_msg_community::community

A pointer to the community.

Remarks
This pointer refers to the beginning of the string in the packet

Definition at line 107 of file snmp.h.

Referenced by snmp_engine(), snmp_message_decode(), and snmp_message_encode().

◆ length

uint32_t snmp_header_s::snmp_msg_community::length

The string length.

Remarks
Do not use strlen on the community pointer since it is not null terminated

Definition at line 113 of file snmp.h.

Referenced by snmp_engine(), snmp_message_decode(), and snmp_message_encode().