SMS Scheduler that will automatically send and receive text messages using the Enfora 1308 GSM Modem. Please note that it uses a modified NetServices library and to set the baud rate for the GSM Modem to 19.2K.
Management Information Base II (RFC1213) objects and functions. More...
Go to the source code of this file.
Functions | |
static void | system_get_object_def (u8_t ident_len, s32_t *ident, struct obj_def *od) |
Returns systems object definitions. | |
static void | system_get_value (struct obj_def *od, u16_t len, void *value) |
Returns system object value. | |
static void | interfaces_get_object_def (u8_t ident_len, s32_t *ident, struct obj_def *od) |
Returns interfaces.ifnumber object definition. | |
static void | interfaces_get_value (struct obj_def *od, u16_t len, void *value) |
Returns interfaces.ifnumber object value. | |
static void | ifentry_get_object_def (u8_t ident_len, s32_t *ident, struct obj_def *od) |
Returns ifentry object definitions. | |
static void | ifentry_get_value (struct obj_def *od, u16_t len, void *value) |
Returns ifentry object value. | |
static void | atentry_get_object_def (u8_t ident_len, s32_t *ident, struct obj_def *od) |
Returns atentry object definitions. | |
static void | ip_get_value (struct obj_def *od, u16_t len, void *value) |
static u8_t | ip_set_test (struct obj_def *od, u16_t len, void *value) |
Test ip object value before setting. | |
static void | ip_addrentry_get_value (struct obj_def *od, u16_t len, void *value) |
static void | ip_rteentry_get_object_def (u8_t ident_len, s32_t *ident, struct obj_def *od) |
static void | ip_rteentry_get_value (struct obj_def *od, u16_t len, void *value) |
static void | ip_ntomentry_get_object_def (u8_t ident_len, s32_t *ident, struct obj_def *od) |
static void | tcp_get_object_def (u8_t ident_len, s32_t *ident, struct obj_def *od) |
static void | tcpconnentry_get_value (struct obj_def *od, u16_t len, void *value) |
static u8_t | snmp_set_test (struct obj_def *od, u16_t len, void *value) |
Test snmp object value before setting. | |
static void | ocstrncpy (u8_t *dst, u8_t *src, u16_t n) |
Copy octet string. | |
void | objectidncpy (s32_t *dst, s32_t *src, u8_t n) |
Copy object identifier (s32_t) array. | |
void | snmp_set_sysdesr (u8_t *str, u8_t *len) |
Initializes sysDescr pointers. | |
void | snmp_set_sysobjid (struct snmp_obj_id *oid) |
Initializes sysObjectID value. | |
void | snmp_inc_sysuptime (void) |
Must be called at regular 10 msec interval from a timer interrupt or signal handler depending on your runtime environment. | |
void | snmp_set_syscontact (u8_t *ocstr, u8_t *ocstrlen) |
Initializes sysContact pointers, e.g. | |
void | snmp_set_sysname (u8_t *ocstr, u8_t *ocstrlen) |
Initializes sysName pointers, e.g. | |
void | snmp_set_syslocation (u8_t *ocstr, u8_t *ocstrlen) |
Initializes sysLocation pointers, e.g. | |
void | snmp_insert_arpidx_tree (struct netif *ni, ip_addr_t *ip) |
Inserts ARP table indexes (.xIfIndex.xNetAddress) into arp table index trees (both atTable and ipNetToMediaTable). | |
void | snmp_delete_arpidx_tree (struct netif *ni, ip_addr_t *ip) |
Removes ARP table indexes (.xIfIndex.xNetAddress) from arp table index trees. | |
void | snmp_insert_ipaddridx_tree (struct netif *ni) |
Inserts ipAddrTable indexes (.ipAdEntAddr) into index tree. | |
void | snmp_delete_ipaddridx_tree (struct netif *ni) |
Removes ipAddrTable indexes (.ipAdEntAddr) from index tree. | |
void | snmp_insert_iprteidx_tree (u8_t dflt, struct netif *ni) |
Inserts ipRouteTable indexes (.ipRouteDest) into index tree. | |
void | snmp_delete_iprteidx_tree (u8_t dflt, struct netif *ni) |
Removes ipRouteTable indexes (.ipRouteDest) from index tree. | |
void | snmp_insert_udpidx_tree (struct udp_pcb *pcb) |
Inserts udpTable indexes (.udpLocalAddress.udpLocalPort) into index tree. | |
void | snmp_delete_udpidx_tree (struct udp_pcb *pcb) |
Removes udpTable indexes (.udpLocalAddress.udpLocalPort) from index tree. | |
void | noleafs_get_object_def (u8_t ident_len, s32_t *ident, struct obj_def *od) |
dummy function pointers for non-leaf MIB nodes from mib2.c | |
Variables | |
struct mib_list_rootnode | udp_root |
index root node for udpTable | |
struct mib_list_rootnode | tcpconntree_root |
index root node for tcpConnTable | |
struct mib_list_rootnode | ipntomtree_root |
index root node for ipNetToMediaTable | |
struct mib_list_rootnode | iprtetree_root |
index root node for ipRouteTable | |
struct mib_list_rootnode | ipaddrtree_root |
index root node for ipAddrTable | |
struct mib_list_rootnode | arptree_root |
index root node for atTable | |
struct mib_list_rootnode | iflist_root |
index root node for ifTable | |
struct mib_array_node | internet |
export MIB tree from mib2.c | |
static struct snmp_obj_id | sysobjid = {SNMP_SYSOBJID_LEN, SNMP_SYSOBJID} |
mib-2.system.sysObjectID | |
static struct snmp_obj_id | snmpgrp_id = {7,{1,3,6,1,2,1,11}} |
enterprise ID for generic TRAPs, .iso.org.dod.internet.mgmt.mib-2.snmp | |
static const s32_t | sysservices = SNMP_SYSSERVICES |
mib-2.system.sysServices | |
static const u8_t | sysdescr_len_default = 4 |
mib-2.system.sysDescr | |
static const u8_t | syscontact_len_default = 0 |
mib-2.system.sysContact | |
static const u8_t | sysname_len_default = 8 |
mib-2.system.sysName | |
static const u8_t | syslocation_len_default = 0 |
mib-2.system.sysLocation | |
static const u8_t | snmpenableauthentraps_default = 2 |
mib-2.snmp.snmpEnableAuthenTraps | |
static struct snmp_obj_id | ifspecific = {2, {0, 0}} |
mib-2.interfaces.ifTable.ifEntry.ifSpecific (zeroDotZero) | |
static struct snmp_obj_id | iprouteinfo = {2, {0, 0}} |
mib-2.ip.ipRouteTable.ipRouteEntry.ipRouteInfo (zeroDotZero) |
Detailed Description
Management Information Base II (RFC1213) objects and functions.
- Note:
- the object identifiers for this MIB-2 and private MIB tree must be kept in sorted ascending order. This to ensure correct getnext operation.
Definition in file mib2.c.
Function Documentation
static void atentry_get_object_def | ( | u8_t | ident_len, |
s32_t * | ident, | ||
struct obj_def * | od | ||
) | [static] |
static void ifentry_get_object_def | ( | u8_t | ident_len, |
s32_t * | ident, | ||
struct obj_def * | od | ||
) | [static] |
static void ifentry_get_value | ( | struct obj_def * | od, |
u16_t | len, | ||
void * | value | ||
) | [static] |
static void interfaces_get_object_def | ( | u8_t | ident_len, |
s32_t * | ident, | ||
struct obj_def * | od | ||
) | [static] |
static void interfaces_get_value | ( | struct obj_def * | od, |
u16_t | len, | ||
void * | value | ||
) | [static] |
static void ip_addrentry_get_value | ( | struct obj_def * | od, |
u16_t | len, | ||
void * | value | ||
) | [static] |
static void ip_get_value | ( | struct obj_def * | od, |
u16_t | len, | ||
void * | value | ||
) | [static] |
static void ip_ntomentry_get_object_def | ( | u8_t | ident_len, |
s32_t * | ident, | ||
struct obj_def * | od | ||
) | [static] |
static void ip_rteentry_get_object_def | ( | u8_t | ident_len, |
s32_t * | ident, | ||
struct obj_def * | od | ||
) | [static] |
static void ip_rteentry_get_value | ( | struct obj_def * | od, |
u16_t | len, | ||
void * | value | ||
) | [static] |
- See also:
- snmp_insert_iprteidx_tree()
static u8_t ip_set_test | ( | struct obj_def * | od, |
u16_t | len, | ||
void * | value | ||
) | [static] |
void noleafs_get_object_def | ( | u8_t | ident_len, |
s32_t * | ident, | ||
struct obj_def * | od | ||
) |
void objectidncpy | ( | s32_t * | dst, |
s32_t * | src, | ||
u8_t | n | ||
) |
static void ocstrncpy | ( | u8_t * | dst, |
u8_t * | src, | ||
u16_t | n | ||
) | [static] |
void snmp_delete_arpidx_tree | ( | struct netif * | ni, |
ip_addr_t * | ip | ||
) |
void snmp_delete_ipaddridx_tree | ( | struct netif * | ni ) |
void snmp_delete_iprteidx_tree | ( | u8_t | dflt, |
struct netif * | ni | ||
) |
void snmp_delete_udpidx_tree | ( | struct udp_pcb * | pcb ) |
void snmp_inc_sysuptime | ( | void | ) |
void snmp_insert_arpidx_tree | ( | struct netif * | ni, |
ip_addr_t * | ip | ||
) |
void snmp_insert_ipaddridx_tree | ( | struct netif * | ni ) |
void snmp_insert_iprteidx_tree | ( | u8_t | dflt, |
struct netif * | ni | ||
) |
void snmp_insert_udpidx_tree | ( | struct udp_pcb * | pcb ) |
void snmp_set_syscontact | ( | u8_t * | ocstr, |
u8_t * | ocstrlen | ||
) |
void snmp_set_sysdesr | ( | u8_t * | str, |
u8_t * | len | ||
) |
void snmp_set_syslocation | ( | u8_t * | ocstr, |
u8_t * | ocstrlen | ||
) |
void snmp_set_sysname | ( | u8_t * | ocstr, |
u8_t * | ocstrlen | ||
) |
void snmp_set_sysobjid | ( | struct snmp_obj_id * | oid ) |
Initializes sysObjectID value.
- Parameters:
-
oid points to stuct snmp_obj_id to copy
static u8_t snmp_set_test | ( | struct obj_def * | od, |
u16_t | len, | ||
void * | value | ||
) | [static] |
static void system_get_object_def | ( | u8_t | ident_len, |
s32_t * | ident, | ||
struct obj_def * | od | ||
) | [static] |
static void system_get_value | ( | struct obj_def * | od, |
u16_t | len, | ||
void * | value | ||
) | [static] |
static void tcp_get_object_def | ( | u8_t | ident_len, |
s32_t * | ident, | ||
struct obj_def * | od | ||
) | [static] |
static void tcpconnentry_get_value | ( | struct obj_def * | od, |
u16_t | len, | ||
void * | value | ||
) | [static] |
Variable Documentation
struct mib_list_rootnode arptree_root |
{ &noleafs_get_object_def, &noleafs_get_value, &noleafs_set_test, &noleafs_set_value, MIB_NODE_LR, 0, NULL, NULL, 0 }
index root node for atTable
struct mib_list_rootnode iflist_root |
{ &ifentry_get_object_def, &ifentry_get_value, #if SNMP_SAFE_REQUESTS &noleafs_set_test, &noleafs_set_value, #else &ifentry_set_test, &ifentry_set_value, #endif MIB_NODE_LR, 0, NULL, NULL, 0 }
index root node for ifTable
struct snmp_obj_id ifspecific = {2, {0, 0}} [static] |
struct mib_array_node internet |
{ &noleafs_get_object_def, &noleafs_get_value, &noleafs_set_test, &noleafs_set_value, MIB_NODE_AR, 2, internet_ids, internet_nodes }
export MIB tree from mib2.c
struct mib_list_rootnode ipaddrtree_root |
{ &noleafs_get_object_def, &noleafs_get_value, &noleafs_set_test, &noleafs_set_value, MIB_NODE_LR, 0, NULL, NULL, 0 }
index root node for ipAddrTable
struct mib_list_rootnode ipntomtree_root |
{ &noleafs_get_object_def, &noleafs_get_value, &noleafs_set_test, &noleafs_set_value, MIB_NODE_LR, 0, NULL, NULL, 0 }
index root node for ipNetToMediaTable
struct snmp_obj_id iprouteinfo = {2, {0, 0}} [static] |
struct mib_list_rootnode iprtetree_root |
{ &noleafs_get_object_def, &noleafs_get_value, &noleafs_set_test, &noleafs_set_value, MIB_NODE_LR, 0, NULL, NULL, 0 }
index root node for ipRouteTable
const u8_t snmpenableauthentraps_default = 2 [static] |
struct snmp_obj_id snmpgrp_id = {7,{1,3,6,1,2,1,11}} [static] |
const u8_t syscontact_len_default = 0 [static] |
const u8_t sysdescr_len_default = 4 [static] |
const u8_t syslocation_len_default = 0 [static] |
const u8_t sysname_len_default = 8 [static] |
struct snmp_obj_id sysobjid = {SNMP_SYSOBJID_LEN, SNMP_SYSOBJID} [static] |
const s32_t sysservices = SNMP_SYSSERVICES [static] |
{ &noleafs_get_object_def, &noleafs_get_value, &noleafs_set_test, &noleafs_set_value, MIB_NODE_LR, 0, NULL, NULL, 0 }
index root node for tcpConnTable
struct mib_list_rootnode udp_root |
{ &noleafs_get_object_def, &noleafs_get_value, &noleafs_set_test, &noleafs_set_value, MIB_NODE_LR, 0, NULL, NULL, 0 }
index root node for udpTable
Generated on Tue Jul 12 2022 19:01:19 by 1.7.2