[jboss-jira] [JBoss JIRA] Closed: (JGRP-516) UDP: mcast_sock is not binding to bind_addr for reception of packets

Bela Ban (JIRA) jira-events at lists.jboss.org
Thu May 17 11:04:52 EDT 2007


     [ http://jira.jboss.com/jira/browse/JGRP-516?page=all ]

Bela Ban closed JGRP-516.
-------------------------

    Resolution: Done

duplicate of 515

> UDP: mcast_sock is not binding to bind_addr for reception of packets
> --------------------------------------------------------------------
>
>                 Key: JGRP-516
>                 URL: http://jira.jboss.com/jira/browse/JGRP-516
>             Project: JGroups
>          Issue Type: Task
>    Affects Versions: 2.4.1, 2.4.1 SP1, 2.4.1 SP2, 2.4.1 SP3
>            Reporter: Bela Ban
>         Assigned To: Bela Ban
>             Fix For: 2.5
>
>
> 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);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list