Convert a BITS datatypes string representation back to bit (e.g. int)

Boris Zweimueller <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi all

I'm looking for a way to convert the BITS datatypes string representation
back to an int

e.g.

BITS value = 0, its string value = "80 00 "

BITS value = 2, its string value = "20 00 "

BITS value = 11, its string value = "00 10 "

BITS value = 15, its string value = "00 01 "

BITS value = 16, its string value = "00 00 08 "

Given this string, how can I convert it back to the bits / int value? I've
found the conversion bit->string in the netsnmp code, does the other way
exist already aswell?

Thanks a lot

Boris

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.