Dear All:
I am Clement. I meet a problem about write 802dot11MIB table. the MIB is as
following:
___________________________________________________________________________________________
[802dot11MIB-dot11GroupAddressesTable]:
dot11GroupAddressesTable OBJECT-TYPE
SYNTAX SEQUENCE OF Dot11GroupAddressesEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A conceptual table containing a set of MAC addresses
identifying the multicast addresses for which this STA
will receive frames. The default value of this attribute
shall be null."
::= { dot11mac 3 }
dot11GroupAddressesEntry OBJECT-TYPE
SYNTAX Dot11GroupAddressesEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An Entry (conceptual row) in the Group Addresses Table.
ifIndex - Each IEEE 802.11 interface is represented by an
ifEntry. Interface tables in this MIB module are indexed
by ifIndex."
INDEX { ifIndex,
dot11GroupAddressesIndex}
::= { dot11GroupAddressesTable 1 }
Dot11GroupAddressesEntry ::=
SEQUENCE { dot11GroupAddressesIndex Integer32,
dot11Address MacAddress,
dot11GroupAddressesStatus RowStatus }
dot11GroupAddressesIndex OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The auxiliary variable used to identify instances
of the columnar objects in the Group Addresses Table."
::= { dot11GroupAddressesEntry 1 }
dot11Address OBJECT-TYPE
SYNTAX MacAddress
MAX-ACCESS read-create
STATUS current
DESCRIPTION
"MAC address identifying a multicast addresses
from which this STA will receive frames."
::= { dot11GroupAddressesEntry 2 }
dot11GroupAddressesStatus OBJECT-TYPE
SYNTAX RowStatus
MAX-ACCESS read-create
STATUS current
DESCRIPTION
"The status column used for creating, modifying, and
deleting instances of the columnar objects in the Group
Addresses Table."
DEFVAL { active }
::= { dot11GroupAddressesEntry 3 }
-----------------------------------------------------------------------------------
the problem is about dot11GroupAddressesIndex, I don't know how to
implement
this object exactly. To implement it, i write the codes as belowing:
[Implementation]
typedef struct
{
int index;
char wifi_Address[6]; /* MacAddress */
char wifi_GroupAddressesStatus; /*RowStatus*/
}dot11GroupAddressesTable;
netsnmp_variable_list *
dot11StationConfigTable_get_first_data_point(void **my_loop_context,
void **my_data_context,
netsnmp_variable_list *
put_index_data,
netsnmp_iterator_info *mydata)
{
netsnmp_variable_list *vptr;
LoopContext = 1;
dot11GroupAddressesTable[LoopContext].index = LoopContext;
*my_loop_context = &LoopContext;
vptr = put_index_data;
snmp_set_var_value(vptr, (u_char *)&LoopContext, sizeof(LoopContext));
vptr = vptr->next_variable;
return put_index_data;
}
----------------------------------------------------------------
When I perform snmpwork, I got the following result:
IEEE802dot11-MIB::dot11GroupAddressesStatus.1.0 = INTEGER: active(1)
IEEE802dot11-MIB::dot11GroupAddressesStatus.2.0 = INTEGER: active(1)
IEEE802dot11-MIB::dot11GroupAddressesStatus.3.0 = INTEGER: active(1)
IEEE802dot11-MIB::dot11GroupAddressesStatus.4.0 = INTEGER: active(1)
but the exact result should be
IEEE802dot11-MIB::dot11GroupAddressesStatus.1 = INTEGER: active(1)
IEEE802dot11-MIB::dot11GroupAddressesStatus.2 = INTEGER: active(1)
IEEE802dot11-MIB::dot11GroupAddressesStatus.3 = INTEGER: active(1)
IEEE802dot11-MIB::dot11GroupAddressesStatus.4 = INTEGER: active(1)
I don't realize how to solve this problem , can any one give me suggestion?
thank you.
Best Regards,
Clement Hsu
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders