Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1880

UDP.ip_ttl is ignored and is always 1

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.5.1, 3.6
    • Labels:
      None

      Description

      Since we switched from using a MulticastSocket for sending of multicast packets to a DatagramSocket, the time-to-live (TTL) of a packet is always 1. The reason is that method setTimeToLive() only exists in MulticastSocket, but not in DatagramSocket.
      We cannot revert the code and use a MulticastSocket to send multicasts, as this won't reveal the real IP address of the sender, but only the multicast address, and the real address is needed to drop packets at the transport level.
      Investigate whether we could use reflection to get the DatagramSocketImpl and call setTimeToLive().

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                belaban Bela Ban
                Reporter:
                belaban Bela Ban
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: