Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8126

JNA ping code reuses buffer causing inconsistent reads of packet contents

    Details

      Description

      When receiving ICMP responses, the JNA ping code is reusing the same ByteBuffer for incoming ICMP packets. This can cause false negative ping results if response packets arrive in quick succession because the contents of the earlier packets will be overwritten by subsequent packets. The async ping processing code is then unable to match the response packet to the earlier request and the request will eventually be processed as a timeout.

      Workaround: Use jicmp as the ping implementation or upgrade to a version of OpenNMS where this issue is fixed.

        Attachments

          Activity

            People

            • Assignee:
              seth Seth Leger
              Reporter:
              seth Seth Leger
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: