mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-04-25 09:02:38 +00:00
snmp mib2: more nodes can be const
This commit is contained in:
parent
5cf4771397
commit
bc47bd28ab
@ -181,13 +181,13 @@ static struct mib_list_rootnode udp_root = {
|
|||||||
static const struct mib_array_node_entry udpentry_nodes[] = {
|
static const struct mib_array_node_entry udpentry_nodes[] = {
|
||||||
{1, &udp_root.scalar.node}, {2, &udp_root.scalar.node}
|
{1, &udp_root.scalar.node}, {2, &udp_root.scalar.node}
|
||||||
};
|
};
|
||||||
static struct mib_array_node udpentry = {
|
static const struct mib_array_node udpentry = {
|
||||||
{ MIB_NODE_AR },
|
{ MIB_NODE_AR },
|
||||||
LWIP_ARRAYSIZE(udpentry_nodes),
|
LWIP_ARRAYSIZE(udpentry_nodes),
|
||||||
udpentry_nodes
|
udpentry_nodes
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct mib_array_node_entry udptable_node = {1, &udpentry.node};
|
static const struct mib_array_node_entry udptable_node = {1, &udpentry.node};
|
||||||
static struct mib_array_node udptable = {
|
static struct mib_array_node udptable = {
|
||||||
{ MIB_NODE_AR },
|
{ MIB_NODE_AR },
|
||||||
0,
|
0,
|
||||||
@ -239,7 +239,7 @@ static struct mib_array_node tcpconnentry = {
|
|||||||
tcpconnentry_nodes
|
tcpconnentry_nodes
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct mib_array_node_entry tcpconntable_node = {1, &tcpconnentry.node};
|
static const struct mib_array_node_entry tcpconntable_node = {1, &tcpconnentry.node};
|
||||||
static struct mib_array_node tcpconntable = {
|
static struct mib_array_node tcpconntable = {
|
||||||
{ MIB_NODE_AR },
|
{ MIB_NODE_AR },
|
||||||
/** @todo update maxlength when inserting / deleting from table
|
/** @todo update maxlength when inserting / deleting from table
|
||||||
@ -318,13 +318,13 @@ static const struct mib_array_node_entry ipntomentry_nodes[] = {
|
|||||||
{1, &ipntomtree_root.scalar.node}, {2, &ipntomtree_root.scalar.node},
|
{1, &ipntomtree_root.scalar.node}, {2, &ipntomtree_root.scalar.node},
|
||||||
{3, &ipntomtree_root.scalar.node}, {4, &ipntomtree_root.scalar.node}
|
{3, &ipntomtree_root.scalar.node}, {4, &ipntomtree_root.scalar.node}
|
||||||
};
|
};
|
||||||
static struct mib_array_node ipntomentry = {
|
static const struct mib_array_node ipntomentry = {
|
||||||
{ MIB_NODE_AR },
|
{ MIB_NODE_AR },
|
||||||
LWIP_ARRAYSIZE(ipntomentry_nodes),
|
LWIP_ARRAYSIZE(ipntomentry_nodes),
|
||||||
ipntomentry_nodes
|
ipntomentry_nodes
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct mib_array_node_entry ipntomtable_node = {1, &ipntomentry.node};
|
static const struct mib_array_node_entry ipntomtable_node = {1, &ipntomentry.node};
|
||||||
static struct mib_array_node ipntomtable = {
|
static struct mib_array_node ipntomtable = {
|
||||||
{ MIB_NODE_AR },
|
{ MIB_NODE_AR },
|
||||||
0,
|
0,
|
||||||
@ -353,13 +353,13 @@ static const struct mib_array_node_entry iprteentry_nodes[] = {
|
|||||||
{11, &iprtetree_root.scalar.node}, {12, &iprtetree_root.scalar.node},
|
{11, &iprtetree_root.scalar.node}, {12, &iprtetree_root.scalar.node},
|
||||||
{13, &iprtetree_root.scalar.node}
|
{13, &iprtetree_root.scalar.node}
|
||||||
};
|
};
|
||||||
static struct mib_array_node iprteentry = {
|
static const struct mib_array_node iprteentry = {
|
||||||
{ MIB_NODE_AR },
|
{ MIB_NODE_AR },
|
||||||
LWIP_ARRAYSIZE(iprteentry_nodes),
|
LWIP_ARRAYSIZE(iprteentry_nodes),
|
||||||
iprteentry_nodes
|
iprteentry_nodes
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct mib_array_node_entry iprtetable_node = {1, &iprteentry.node};
|
static const struct mib_array_node_entry iprtetable_node = {1, &iprteentry.node};
|
||||||
static struct mib_array_node iprtetable = {
|
static struct mib_array_node iprtetable = {
|
||||||
{ MIB_NODE_AR },
|
{ MIB_NODE_AR },
|
||||||
0,
|
0,
|
||||||
@ -386,13 +386,13 @@ static const struct mib_array_node_entry ipaddrentry_nodes[] = {
|
|||||||
{4, &ipaddrtree_root.scalar.node},
|
{4, &ipaddrtree_root.scalar.node},
|
||||||
{5, &ipaddrtree_root.scalar.node}
|
{5, &ipaddrtree_root.scalar.node}
|
||||||
};
|
};
|
||||||
static struct mib_array_node ipaddrentry = {
|
static const struct mib_array_node ipaddrentry = {
|
||||||
{ MIB_NODE_AR },
|
{ MIB_NODE_AR },
|
||||||
LWIP_ARRAYSIZE(ipaddrentry_nodes),
|
LWIP_ARRAYSIZE(ipaddrentry_nodes),
|
||||||
ipaddrentry_nodes
|
ipaddrentry_nodes
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct mib_array_node_entry ipaddrtable_node = {1, &ipaddrentry.node};
|
static const struct mib_array_node_entry ipaddrtable_node = {1, &ipaddrentry.node};
|
||||||
static struct mib_array_node ipaddrtable = {
|
static struct mib_array_node ipaddrtable = {
|
||||||
{ MIB_NODE_AR },
|
{ MIB_NODE_AR },
|
||||||
0,
|
0,
|
||||||
@ -452,14 +452,14 @@ static const struct mib_array_node atentry = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const struct mib_array_node_entry attable_node = {1, &atentry.node};
|
static const struct mib_array_node_entry attable_node = {1, &atentry.node};
|
||||||
static struct mib_array_node attable = {
|
static const struct mib_array_node attable = {
|
||||||
{ MIB_NODE_AR },
|
{ MIB_NODE_AR },
|
||||||
1,
|
1,
|
||||||
&attable_node
|
&attable_node
|
||||||
};
|
};
|
||||||
|
|
||||||
/* at .1.3.6.1.2.1.3 */
|
/* at .1.3.6.1.2.1.3 */
|
||||||
static struct mib_array_node_entry mib2_at_node = {1, &attable.node};
|
static const struct mib_array_node_entry mib2_at_node = {1, &attable.node};
|
||||||
static struct mib_array_node at = {
|
static struct mib_array_node at = {
|
||||||
{ MIB_NODE_AR },
|
{ MIB_NODE_AR },
|
||||||
0,
|
0,
|
||||||
@ -497,13 +497,13 @@ static const struct mib_array_node_entry ifentry_nodes[] = {
|
|||||||
{19, &iflist_root.scalar.node}, {20, &iflist_root.scalar.node},
|
{19, &iflist_root.scalar.node}, {20, &iflist_root.scalar.node},
|
||||||
{21, &iflist_root.scalar.node}, {22, &iflist_root.scalar.node}
|
{21, &iflist_root.scalar.node}, {22, &iflist_root.scalar.node}
|
||||||
};
|
};
|
||||||
static struct mib_array_node ifentry = {
|
static const struct mib_array_node ifentry = {
|
||||||
{ MIB_NODE_AR },
|
{ MIB_NODE_AR },
|
||||||
LWIP_ARRAYSIZE(ifentry_nodes),
|
LWIP_ARRAYSIZE(ifentry_nodes),
|
||||||
ifentry_nodes
|
ifentry_nodes
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct mib_array_node_entry iftable_node = {1, &ifentry.node};
|
static const struct mib_array_node_entry iftable_node = {1, &ifentry.node};
|
||||||
static struct mib_array_node iftable = {
|
static struct mib_array_node iftable = {
|
||||||
{ MIB_NODE_AR },
|
{ MIB_NODE_AR },
|
||||||
0,
|
0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user