--===============0392445406==
Content-Type: multipart/alternative;
boundary="----=_Part_46364_10295390.1175160332217"

------=_Part_46364_10295390.1175160332217
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Dear Magnus:

Thank you. And the problem that why there are seven entries in my address is
also
confused to me. The code I wrote is as following:

typedef struct
{
int index;
char Address[6]; /* MacAddress */
char GroupAddressesStatus;
}GroupAddressesTable;

and the initial value is { 1, {0x11, 0x22, 0x33, 0x44, 0x55, 0x66}, ACTIVE}

in this sentence , there shouldn't has seven entries. but somehow , if i
modify the address
array to seven which as belowed:

typedef struct
{
int index;
char Address[7]; /* MacAddress */
char GroupAddressesStatus;
}GroupAddressesTable;

the result of snmpget is as following:

IEEE802dot11-MIB:: dot11Address.1.0 = STRING: 11:22:33:44:55:66

It is quite strange, since in theory, checkfns.h will check the entries and
the length,
so the result of seven entries is not reasonable, can you give me any
suggestion
or advice about that. Thank you

Best Regards,
Clement Hsu



2007/3/29, Magnus Fromreide :
>
> On tor, 2007-03-29 at 13:23 +0800, Clement Hsu wrote:
> > Dear All:
> >
> > I am Clement. I meet a problem about macaddress. The following is the
> > mib which I want to write:
> >
> >
> >

> ---------------------------------------------------------------------------------------------------------------------------------------------
> > [MIB]

> ...
> > 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 }

>
> > The problem is when I perform mib2c and create the corresponding mib
> > template( I use mib2c.iterate_access)
> > After coding, when I perform ./get, I got the following result:
> >
> > Walk dot11GroupAddressesTable
> > IEEE802dot11-MIB:: dot11Address.1.0 = STRING: 11:22:33:44:55:66:1
> > IEEE802dot11-MIB::dot11Address.2.0 = STRING: 11:22:33:44:55:66:1
> > IEEE802dot11-MIB::dot11Address.3.0 = STRING: 11:22:33:44:55:66:1
> > IEEE802dot11-MIB::dot11Address.4.0 = STRING: 11:22:33:44:55:66:1
> > 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)
> >
> > the error is that the EEE802dot11-MIB::dot11Address.1.0 should show
> > Hex-STRING: 11 22 33 44 55 66
> > not
> > STRING: 11:22:33:44:55:66:1

>
> This is expected since your MIB states that you should use MacAddress as
> syntax for dot11Address and MacAddress has a DISPLAY-HINT of "1x:"
>
> The big question is why there are seven entries in your address.
>
> /MF
>
>


------=_Part_46364_10295390.1175160332217
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Dear
Magnus:



Thank you. And the problem that why there are seven entries in my address is also
confused to me. The code I wrote is as following:

typedef struct
{
int index;
char Address[6];    /* MacAddress */
char GroupAddressesStatus;

}GroupAddressesTable;

and the initial value is { 1, {0x11, 0x22, 0x33, 0x44, 0x55, 0x66}, ACTIVE}

in this sentence , there shouldn't has seven entries. but somehow , if i modify the address
array to seven which as belowed:


typedef struct

{

int index;

char Address[7];    /* MacAddress */

char GroupAddressesStatus;

}GroupAddressesTable;


the result of snmpget is as following:


IEEE802dot11-MIB:: dot11Address.1.0 = STRING: 11:22:33:44:55:66

It is quite strange, since in theory, checkfns.h will check the entries and the length,
so the result of seven entries is not reasonable, can you give me any suggestion

or advice about that. Thank you

Best Regards,
Clement Hsu



2007/3/29, Magnus Fromreide <magfr@lysator.liu.se>:
On tor, 2007-03-29 at 13:23 +0800, Clement Hsu wrote:
> Dear All:
>
> I am Clement. I meet a problem about macaddress. The following is the

> mib which I want to write:
>
>
> ---------------------------------------------------------------------------------------------------------------------------------------------
> [MIB]
...

> 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 }

> The problem is when I perform mib2c and create the corresponding mib
> template( I use mib2c.iterate_access
)
> After coding, when I perform ./get, I got the following result:
>
> Walk dot11GroupAddressesTable
> IEEE802dot11-MIB:: dot11Address.1.0 = STRING: 11:22:33:44:55:66:1
> IEEE802dot11-MIB::dot11Address.2.0
= STRING: 11:22:33:44:55:66:1
> IEEE802dot11-MIB::dot11Address.3.0 = STRING: 11:22:33:44:55:66:1
> IEEE802dot11-MIB::dot11Address.4.0 = STRING: 11:22:33:44:55:66:1
> 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)
>
> the error is that the EEE802dot11-MIB::dot11Address.1.0  should show
>  Hex-STRING: 11 22 33 44 55 66
> not
>  STRING: 11:22:33:44:55:66:1

This is expected since your MIB states that you should use MacAddress as

syntax for dot11Address and MacAddress has a DISPLAY-HINT of "1x:"

The big question is why there are seven entries in your address.

/MF




------=_Part_46364_10295390.1175160332217--


--===============0392445406==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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?p...rge&CID=DEVDEV
--===============0392445406==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============0392445406==--