Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[dsdp-tcf-dev] [Bug 318260] New: UDP Discovery does not send out any packets

https://bugs.eclipse.org/bugs/show_bug.cgi?id=318260 
Product/Component: Target Management / TCF

           Summary: UDP Discovery does not send out any packets
    Classification: DSDP
           Product: Target Management
           Version: unspecified
          Platform: PC
        OS/Version: Windows 7
            Status: NEW
          Severity: normal
          Priority: P3
         Component: TCF
        AssignedTo: dsdp.tm.tcf-inbox@xxxxxxxxxxx
        ReportedBy: daniel.friederich@xxxxxxxxxxxxx
         QAContact: martin.oberhuber@xxxxxxxxxxxxx


Build Identifier: Not available. SVN revision 1042

I see on my PC that the java UDP discovery implementation does not send out any
packets.
The LocatorService considers 2 network interfaces for the UDP discovery, both
interfaces get problematic broadcast addresses which do not match the interface
address in the first network_prefix_len bits, hence all the UDP packets are
filtered out.
Details:
Java 1.6 (19), machine with 1 HW network card, IP6 enabled, Win7, 64 bit.
The LocatorService.refreshSubNetList method adds the following 2 subnets
Subnet 0: IP 127.0.0.1, network prefix len = 8, Broadcast 0.255.255.255
Subnet 1: IP 10.82.136.36, network prefix len = 24, Broadcast 255.255.255.255
For Subnet 1, java 1.6 reports a network prefix length of 128, correct would be
22, the code contains a workaround with the guesses prefix of 24.
The actual problem however are the broadcast addresses, both of them as
reported by java 1.6 do not match the first bits of the network address,
therefore the sendDatagramPacket method filters out all UDP messages to
broadcast, no packet is sent when intending to broadcast.

Eclipse is able to discover peers when it gets port 1534.

I saw bug, 312457 about an exception in the UDP discovery, I was not sure if I
should consider this to be the same bug. This bugs are related as in both cases
the issue is with unexpected input we get from Windows, but here the issue is
the discovery not working and not an exception as mentioned in the title of
312457.


Reproducible: Always

Steps to Reproduce:
1. Start agent which acquires UDP port 1534
2. Start eclipse and check the discovery
-> Eclipse does not discover any peers.

-- 
Configure bugmail: https://bugs.eclipse.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


Back to the top