@tomaskir said in Need to change SNMP request-id behavior -- configurable?:
This is the fault of your device, your device needs to respond from the same IP address that the connection was initiated to.
This is a basic IP networking principle, you always respond from the src-address that was the dst-address in the original packet.
I suggest contacting the device manufacturer to fix this.
Actually, what my device is doing is not wrong.
From SNMP RFC 1157
RequestIDs are used to distinguish among outstanding requests. By
use of the RequestID, an SNMP application entity can correlate
incoming responses with outstanding requests.
If we recall OSI Model, it is also principle to not depend on data from different OSI layers in your protocol. If your protocol depend on information in Layer2 or Layer3, then your protocol will not work if different Layer2 or Layer3 are used. Then your layers are not independent, you cannot swap A-layer2 for B-layer2, and OSI is broken.
So actually NetXMS is in violation of SNMP standard 
Also, I realize, my comment about port-numbers is not correct :-[, NetXMS should use only RequestID to match SNMP. It should not use UDP port number for matching.