Hi,
We are using Net-SNMP version 5.4.2.1 in our product and we found one issue
with AgentX communication in the following scenario
AgentX Master agent is on Little Endian architecture
AgentX Subagent is on Big Endian architecture
In this setup we are facing an issue when subagent sends the AgentX Open-PDU
then it can be seen from the capture that it is using big-endian encoding
scheme and but the ByteOrder flag in the AgentX Open-PDU is not set. So while
parsing the request received from the subagent the master agent is assuming
little endian encoding, and hence causing the issue.
=========================== Logs of net-snmp when the issue happens
=======================
snmpd[13591]: netsnmp_tcp_recv(): snmpTCPDomain.c, 119:
snmpd[13591]: netsnmp_tcp:
snmpd[13591]: recv fd 27 got 80 bytes
snmpd[13591]: dumpx_recv:
snmpd[13591]: 00 00 00 3C
snmpd[13591]:
snmpd[13591]: dumpv_recv:
snmpd[13591]: Integer:1006632960 (0x3C000000)
snmpd[13591]: trace:
snmpd[13591]: _sess_read(): snmp_api.c, 5601:
snmpd[13591]: sess_read:
snmpd[13591]: loop packet_len 80, PDU length 1006632980
snmpd[13591]: trace:
snmpd[13591]: _sess_read(): snmp_api.c, 5633:
snmpd[13591]: sess_read:
snmpd[13591]: pkt not complete (need 1006632980 got 80 so far)
==========================================================================================
The SNMP payload for Open request received from little endian node
010100000000000000000000e655b7503c000000000000000504000001000000881f000003000000020000000a000000190000004e65742d534e4d50204167656e7458207375622d6167656e74000000
==========================================================================================
The SNMP payload for Open request received from big endian node
0101000000000000000000003b1c99240000003c00000000050400000000000100001f8800000003000000020000000a000000194e65742d534e4d50204167656e7458207375622d6167656e74000000
Please let us know if the same issue is a known issue, and let us know how we
can address this issue.
Regards
Jyoti
===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders