| Summary: | UDP Discovery does not send out any packets | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] TCF | Reporter: | Daniel Friederich <danielfriederich> | ||||
| Component: | Core | Assignee: | Project Inbox <dsdp.tm.tcf-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Martin Oberhuber <mober.at+eclipse> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cdtdoug, eugene, john.cortell | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 0.4.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Daniel Friederich
As there are 2 network interfaces, there should be 2 UDP broadcast packets sent. For the loopback interface I don't really understand how java 1.6 comes up with a 0.255.255.255 broadcast address. For the other interface, I wonder if the issue is not on our code, more specifically in the assumption that the broadcast address has to match the network addresses first network prefix bits. Using 255.255.255.255 as broadcast address for the primary network adapted seems ok to me, well I have to admit that I'm not an network expert here. Created attachment 172980 [details]
Do not explicitly check if the udp broadcast address is contained in the subnet.
This helps for the 2'nd subnet.
For the first loopback interface I did not see the packet on the receiving side, so this is not a complete fix.
The problem is caused by JVM bug: InterfaceAddress.getNetworkPrefixLength() does not conform to Javadoc: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6707289 The bug shows up only on Windows when IPv6 is enabled. The bug is supposed to be fixed in Java 1.7. I have committed a workaround for the Java API bug. The workaround uses ipconfig.exe to get correct network prefix length and broadcast address. Moving bugs to new home for IP log. Comment on attachment 172980 [details]
Do not explicitly check if the udp broadcast address is contained in the subnet.
Marking patch obsolete since it was not used.
Bulk change: Marking all bugs from the TM era (until June 2011) target 0.3 |