Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: STM32F746_iothub_client_sample_mqtt DISCO-F746NG_Ethernet Nucleo_F746ZG_Ethernet thethingsiO-DISCO_F746NG-mqtt ... more
SNMP input message processing (RFC1157). More...
Go to the source code of this file.
Functions | |
static err_t | snmp_pdu_header_check (struct pbuf *p, u16_t ofs, u16_t pdu_len, u16_t *ofs_ret, struct snmp_msg_pstat *m_stat) |
Checks and decodes incoming SNMP message header, logs header errors. | |
void | snmp_init (void) |
Starts SNMP Agent. | |
static void | snmp_msg_get_event (u8_t request_id, struct snmp_msg_pstat *msg_ps) |
Service an internal or external event for SNMP GET. | |
static void | snmp_msg_getnext_event (u8_t request_id, struct snmp_msg_pstat *msg_ps) |
Service an internal or external event for SNMP GETNEXT. | |
static void | snmp_msg_set_event (u8_t request_id, struct snmp_msg_pstat *msg_ps) |
Service an internal or external event for SNMP SET. | |
void | snmp_msg_event (u8_t request_id) |
Handle one internal or external event. | |
struct snmp_varbind * | snmp_varbind_alloc (struct snmp_obj_id *oid, u8_t type, u8_t len) |
Varbind-list functions. | |
Variables | |
const s32_t | snmp_version = 0 |
SNMP v1 == 0. | |
const char | snmp_publiccommunity [7] = "public" |
default SNMP community string |
Detailed Description
SNMP input message processing (RFC1157).
Definition in file msg_in.c.
Function Documentation
void snmp_init | ( | void | ) |
void snmp_msg_event | ( | u8_t | request_id ) |
static void snmp_msg_get_event | ( | u8_t | request_id, |
struct snmp_msg_pstat * | msg_ps | ||
) | [static] |
static void snmp_msg_getnext_event | ( | u8_t | request_id, |
struct snmp_msg_pstat * | msg_ps | ||
) | [static] |
static void snmp_msg_set_event | ( | u8_t | request_id, |
struct snmp_msg_pstat * | msg_ps | ||
) | [static] |
static err_t snmp_pdu_header_check | ( | struct pbuf * | p, |
u16_t | ofs, | ||
u16_t | pdu_len, | ||
u16_t * | ofs_ret, | ||
struct snmp_msg_pstat * | m_stat | ||
) | [static] |
Checks and decodes incoming SNMP message header, logs header errors.
- Parameters:
-
p points to pbuf chain of SNMP message (UDP payload) ofs points to first octet of SNMP message pdu_len the length of the UDP payload ofs_ret returns the ofset of the variable bindings m_stat points to the current message request state return
- Returns:
- ERR_OK SNMP header is sane and accepted
- ERR_ARG SNMP header is either malformed or rejected
struct snmp_varbind* snmp_varbind_alloc | ( | struct snmp_obj_id * | oid, |
u8_t | type, | ||
u8_t | len | ||
) | [read] |
Variable Documentation
const char snmp_publiccommunity[7] = "public" |
const s32_t snmp_version = 0 |
Generated on Tue Jul 12 2022 18:14:55 by
