BITS (UNIVERSAL) variable
Meilán García Antonio <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I would like to set bits (wich indicate alert statues) with a BITS variable. mib2c give me a OCTECT_STRING variable char muxAlarmStatus[NNN]; size_t muxAlarmStatus_len; and if I would like to set these bits '0010100100000001'b (0x2901) Is it correct? (NNN=2 because my alarm status are 2 byte) unsigned short alarms=0x2901; memcpy(...muxAlarmStatus, &temp, 2); ...muxAlarmaStatus_len=2; Thanks, Antonio. ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users