I am trying to write a small SNMP manager to query agents for data. I have translated a complete PDU into its binary representation and it compares fine to a sniffed packet. My question is how do I create a machine independent (if push comes to shove, Linux specific)buffer of binary data in C++. I do not know the internal representstion of struct so would it work? If so how?
While on the point, could someone give me a good explanation of how to encode numbers >127 in an oid.