Commit e37ee9d3 authored by Adam Wujek's avatar Adam Wujek

[bug: #223] userspace/snmpd: reduce the size of allocated memory by bridge_mib

Reduce the size of port mask from 65535*8 ports to 16*8 ports for
dot1qVlanCurrentTable and dot1qVlanStaticTable.
Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 18f04f9a
...@@ -85,13 +85,13 @@ typedef struct dot1qVlanCurrentTable_data_s { ...@@ -85,13 +85,13 @@ typedef struct dot1qVlanCurrentTable_data_s {
/* /*
* dot1qVlanCurrentEgressPorts(4)/PortList/ASN_OCTET_STR/char(char)//L/A/w/e/r/d/h * dot1qVlanCurrentEgressPorts(4)/PortList/ASN_OCTET_STR/char(char)//L/A/w/e/r/d/h
*/ */
char dot1qVlanCurrentEgressPorts[65535]; char dot1qVlanCurrentEgressPorts[16];
size_t dot1qVlanCurrentEgressPorts_len; /* # of char elements, not bytes */ size_t dot1qVlanCurrentEgressPorts_len; /* # of char elements, not bytes */
/* /*
* dot1qVlanCurrentUntaggedPorts(5)/PortList/ASN_OCTET_STR/char(char)//L/A/w/e/r/d/h * dot1qVlanCurrentUntaggedPorts(5)/PortList/ASN_OCTET_STR/char(char)//L/A/w/e/r/d/h
*/ */
char dot1qVlanCurrentUntaggedPorts[65535]; char dot1qVlanCurrentUntaggedPorts[16];
size_t dot1qVlanCurrentUntaggedPorts_len; /* # of char elements, not bytes */ size_t dot1qVlanCurrentUntaggedPorts_len; /* # of char elements, not bytes */
/* /*
......
...@@ -86,19 +86,19 @@ size_t dot1qVlanStaticName_len; /* # of char elements, not bytes */ ...@@ -86,19 +86,19 @@ size_t dot1qVlanStaticName_len; /* # of char elements, not bytes */
/* /*
* dot1qVlanStaticEgressPorts(2)/PortList/ASN_OCTET_STR/char(char)//L/A/W/e/r/d/h * dot1qVlanStaticEgressPorts(2)/PortList/ASN_OCTET_STR/char(char)//L/A/W/e/r/d/h
*/ */
char dot1qVlanStaticEgressPorts[65535]; char dot1qVlanStaticEgressPorts[16];
size_t dot1qVlanStaticEgressPorts_len; /* # of char elements, not bytes */ size_t dot1qVlanStaticEgressPorts_len; /* # of char elements, not bytes */
/* /*
* dot1qVlanForbiddenEgressPorts(3)/PortList/ASN_OCTET_STR/char(char)//L/A/W/e/r/d/h * dot1qVlanForbiddenEgressPorts(3)/PortList/ASN_OCTET_STR/char(char)//L/A/W/e/r/d/h
*/ */
char dot1qVlanForbiddenEgressPorts[65535]; char dot1qVlanForbiddenEgressPorts[16];
size_t dot1qVlanForbiddenEgressPorts_len; /* # of char elements, not bytes */ size_t dot1qVlanForbiddenEgressPorts_len; /* # of char elements, not bytes */
/* /*
* dot1qVlanStaticUntaggedPorts(4)/PortList/ASN_OCTET_STR/char(char)//L/A/W/e/r/d/h * dot1qVlanStaticUntaggedPorts(4)/PortList/ASN_OCTET_STR/char(char)//L/A/W/e/r/d/h
*/ */
char dot1qVlanStaticUntaggedPorts[65535]; char dot1qVlanStaticUntaggedPorts[16];
size_t dot1qVlanStaticUntaggedPorts_len; /* # of char elements, not bytes */ size_t dot1qVlanStaticUntaggedPorts_len; /* # of char elements, not bytes */
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment