On my network I've started to see the ConnectivityService broadcast android.net.wifi.LINK_CONFIGURATION_CHANGED intents every time a UDP packet is being sent. It prevents the response from coming back.
Whenever the link configuration is changed, it flips between one of two IPv6 addresses. Does anybody know how the best way to handle this case? I need to be able to send out a UDP packet and read the response. Here's what I think the relevant source file is: https://android.googlesource.com/platform/frameworks/base/+/be9ee6a498afc08df1ca6d796b703b703b25c9a9%5E!/ Here's a log of the intent: <--- UDP Packet is sent here, and instead of the response I see this intent. Notice the IPv6 address change --> 09-20 22:37:39.199 D/NETWORK (17573): receiver: android.net.wifi.LINK_CONFIGURATION_CHANGED 09-20 22:37:39.209 D/NETWORK (17573): receiver: key=linkProperties, val={InterfaceName: wlan0 LinkAddresses: [[2633:3123:31dc:5b1a:fec2:deff:fe2d:6e6/64,10.1.10.60/24,] Routes: [10.1.10.0/24 -> 0.0.0.0,0.0.0.0/0 -> 10.1.10.1,] DnsAddresses: [75.75.75.75,75.75.76.76,75.75.75.75,75.75.76.76,] Domains: pubwp.comcast.netMTU: 0HttpProxy: [ProxyProperties.mHost == null] } 09-20 22:37:39.259 D/NETWORK (17573): receiver: android.net.wifi.LINK_CONFIGURATION_CHANGED 09-20 22:37:39.269 D/NETWORK (17573): receiver: key=linkProperties, val={InterfaceName: wlan0 LinkAddresses: [2633:3123:31dc:5b1a:115b:bc24:44de:f77d/64,10.1.10.60/24,] Routes: [10.1.10.0/24 -> 0.0.0.0,0.0.0.0/0 -> 10.1.10.1,] DnsAddresses: [75.75.75.75,75.75.76.76,75.75.75.75,75.75.76.76,] Domains: pubwp.comcast.netMTU: 0HttpProxy: [ProxyProperties.mHost == null] } <--- Another UDP Packet is sent here, and instead of the response I see the same behavior. Notice the IPv6 address flips back to what it was before --> 09-20 22:37:42.239 D/NETWORK (17573): receiver: android.net.wifi.LINK_CONFIGURATION_CHANGED 09-20 22:37:42.239 D/NETWORK (17573): receiver: key=linkProperties, val={InterfaceName: wlan0 LinkAddresses: [2633:3123:31dc:5b1a:fec2:deff:fe2d:6e6/64,10.1.10.60/24,] Routes: [10.1.10.0/24 -> 0.0.0.0,0.0.0.0/0 -> 10.1.10.1,] DnsAddresses: [75.75.75.75,75.75.76.76,75.75.75.75,75.75.76.76,] Domains: pubwp.comcast.netMTU: 0HttpProxy: [ProxyProperties.mHost == null] } 09-20 22:37:42.259 D/NETWORK (17573): receiver: android.net.wifi.LINK_CONFIGURATION_CHANGED 09-20 22:37:42.259 D/NETWORK (17573): receiver: key=linkProperties, val={InterfaceName: wlan0 LinkAddresses: [2633:3123:31dc:5b1a:115b:bc24:44de:f77d/64,10.1.10.60/24,] Routes: [10.1.10.0/24 -> 0.0.0.0,0.0.0.0/0 -> 10.1.10.1,] DnsAddresses: [75.75.75.75,75.75.76.76,75.75.75.75,75.75.76.76,] Domains: pubwp.comcast.netMTU: 0HttpProxy: [ProxyProperties.mHost == null] }' Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/899f0801-5610-4006-a45b-9d7a91ca569c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.