Issue in AgentX subagent on Big Endian architecture
Jyoti Singh <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <FB2AC9A039F0D949A4A071D39790302140B1F55AFB@GUREXMB01.ASIAN.AD.ARICENT.COM> |
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 on Little Endian architecture AgentX Subagent 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 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-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users