GoSNMPServer icon indicating copy to clipboard operation
GoSNMPServer copied to clipboard

TCP support

Open Naveenrajp26 opened this issue 1 year ago • 1 comments

Added the tcp support

Naveenrajp26 avatar Jan 17 '25 11:01 Naveenrajp26

I appreciate the contribution

Furthermore, upon initial review, this implementation does not account for the length field in the protocol. It needs to be supplemented based on RFC3430[1].

Additionally, if you could provide a unit test, I would be very grateful.

[1] http://www.faqs.org/rfcs/rfc3430.html

   It is possible that the underlying TCP implementation delivers byte
   sequences that do not align with SNMP message boundaries.  A
   receiving SNMP engine MUST therefore use the length field in the
   BER-encoded SNMP message to separate multiple requests sent over a
   single TCP connection (framing).  An SNMP engine which looses framing
   (for example due to ASN.1 parse errors) SHOULD close the TCP
   connection.  The connection initiator will then be responsible for
   establishing a new TCP connection.

slayercat avatar Jan 20 '25 05:01 slayercat