|
lwIP 2.0.0
lwIP 2.0.0
LightweightIPstack
|
Functions | |
| const char * | snmp_get_community_trap (void) |
| void | snmp_set_community_trap (const char *const community) |
| void | snmp_trap_dst_enable (u8_t dst_idx, u8_t enable) |
| void | snmp_trap_dst_ip_set (u8_t dst_idx, const ip_addr_t *dst) |
| void | snmp_set_auth_traps_enabled (u8_t enable) |
| u8_t | snmp_get_auth_traps_enabled (void) |
| err_t | snmp_send_trap (const struct snmp_obj_id *eoid, s32_t generic_trap, s32_t specific_trap, struct snmp_varbind *varbinds) |
| err_t | snmp_send_trap_generic (s32_t generic_trap) |
| err_t | snmp_send_trap_specific (s32_t specific_trap, struct snmp_varbind *varbinds) |
| void | snmp_coldstart_trap (void) |
| void | snmp_authfail_trap (void) |
| void snmp_authfail_trap | ( | void | ) |
Send authentication failure trap (used internally by agent)
| void snmp_coldstart_trap | ( | void | ) |
Send coldstart trap
| u8_t snmp_get_auth_traps_enabled | ( | void | ) |
Get authentication traps enabled state
| const char* snmp_get_community_trap | ( | void | ) |
Returns current SNMP community string used for sending traps.
| err_t snmp_send_trap | ( | const struct snmp_obj_id * | eoid, |
| s32_t | generic_trap, | ||
| s32_t | specific_trap, | ||
| struct snmp_varbind * | varbinds | ||
| ) |
Sends a generic or enterprise specific trap message.
| eoid | points to enterprise object identifier |
| generic_trap | is the trap code |
| specific_trap | used for enterprise traps when generic_trap == 6 |
| varbinds | linked list of varbinds to be sent |
send to the TRAP destination
| err_t snmp_send_trap_generic | ( | s32_t | generic_trap | ) |
Send generic SNMP trap
| err_t snmp_send_trap_specific | ( | s32_t | specific_trap, |
| struct snmp_varbind * | varbinds | ||
| ) |
Send specific SNMP trap with variable bindings
| void snmp_set_auth_traps_enabled | ( | u8_t | enable | ) |
Enable/disable authentication traps
| void snmp_set_community_trap | ( | const char *const | community | ) |
Sets SNMP community string used for sending traps. The string itself (its storage) must be valid throughout the whole life of program (or until it is changed to sth else).
| community | is a pointer to new trap community string |
| void snmp_trap_dst_enable | ( | u8_t | dst_idx, |
| u8_t | enable | ||
| ) |
Sets enable switch for this trap destination.
| dst_idx | index in 0 .. SNMP_TRAP_DESTINATIONS-1 |
| enable | switch if 0 destination is disabled >0 enabled. |
| void snmp_trap_dst_ip_set | ( | u8_t | dst_idx, |
| const ip_addr_t * | dst | ||
| ) |
Sets IPv4 address for this trap destination.
| dst_idx | index in 0 .. SNMP_TRAP_DESTINATIONS-1 |
| dst | IPv4 address in host order. |