Hello, everyone, I extend snmpd with my private mibs. The index of my table is mac address. In order to print the index correctly, I change the index's type to ASN_PRIV_IMPLIED_OCTET_STR from ASN_OCTET_STR in the codes generated by mib2c. I define the struct as : u_char mac_addr[12]
mac_addr="A:B:C:D:E:F";
But when I run snmpd to get the table datas , it always print:
xx.'A:B:C'.68.58.69.70 = x;
not xx.A:B:C:D:E:F=x;
I don't what's wrong with it. Could anyone give me some advice how to correct this error? Thank you very much!
I am looking forward to your reply! Anyway, thanks again.
Livia
