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

UDP: mcast_sock is not binding to bind_addr for reception of packets

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 2.5
    • 2.4.1, 2.4.1 SP1, 2.4.1 SP2, 2.4.1 SP3
    • None

      mcast_sock only bind to a NIC for sending of messages, but not for reception: it actually receives multicast packets on all interfaces (wildcard address 0.0.0.0). Code is UDP.createSockets():

      mcast_sock=new MulticastSocket(mcast_port);

      We should change this to:

      SocketAddress saddr=new InetSocketAddress(bind_addr, mcast_port);
      mcast_sock=new MulticastSocket(saddr);

            rhn-engineering-bban Bela Ban
            rhn-engineering-bban Bela Ban
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: