soniah/gosnmp — pull request #36 by eferro (2014-11-21 13:37:03+00:00)
Title: Bugfix Lenght Octets bytes in reverse order (not X.690 compliant)

When the lenght to marshall was greater than 256 the order or the bytes was incorrent.
Acording to http://en.wikipedia.org/wiki/X.690#Length_Octets:

435 should be codified as 0x82(0b10000010), 0x01(0b00000001), 0xb3(0b10110011)
But the function return 0x82, 0xb3, 0x01
So when we only need one byte for the lengths it works great, but for longer pdus, it generate a invalid snmp datagram

I am new to golang programming so the reverse of the array is not very idiomatic, but it works :-)