puresnmp icon indicating copy to clipboard operation
puresnmp copied to clipboard

Fix assymetry between converting a PDU to bytes and converting bytes to a PDU.

Open exhuma opened this issue 8 years ago • 0 comments

When using pop_tlv to convert a bytes object to a bytes object into a PDU object, the result is different than what you might expect.

  • Instantiating a PDU class takes pure Python integer objects as initialisor arguments.
  • When converting a PDU using pop_tlv these values are represented as puresnmp Integer instance.

This has been observed with the error_index and error_status fields.

exhuma avatar Oct 04 '16 05:10 exhuma