Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

give the interface time to settle before rejoining mdns #7

Closed

Conversation

mobileoverlord
Copy link
Contributor

While using nerves_init_gadget with wlan0 I have found that the multicast group memberships were not being established once the ip changes.

What I was experiencing
Once the device was fully booted and has connected to the network and the IP address is up mdns would not properly restart. I would no longer see mdns logger outpus in the console of the device, and I was no longer able to send queries to it from other devices on the network.
Here is the output of ``

Idx     Device    : Count Querier       Group    Users Timer    Reporter
1       lo        :     1      V3
                                010000E0     1 0:00000000               0
4       wlan0     :     1      V3
                                010000E0     1 0:00000000               0

What should happen
After adding in a sleep of 100 ms I was able to get consistent registration results. Here is the output of `` after

cmd("cat /proc/net/igmp")
Idx     Device    : Count Querier       Group    Users Timer    Reporter
1       lo        :     1      V3
                                010000E0     1 0:00000000               0
4       wlan0     :     3      V3
                                FB0000E0     1 0:00000000               0
                                010000E0     1 0:00000000               0

There is a deeper problem that is at play here and we need to revisit this to find a better solution. We need to come up with a way that we can monitor multicast group registrations

@fhunleth
Copy link
Collaborator

Merged. Sigh.

@fhunleth fhunleth closed this Aug 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants