Carrier Loss #65
-
Hi! I recently had a one-off(?) and probably short-lived (I wasn't in the building at the time, but the hub and Pi are in the same room!) - but apparently 'fatal' - carrier loss on one of my Raspberry Pi's to my wifi. The other one had one at a similar time and seems to have successfully reconnected. Restarting the dhcpcd seems to have reconnected and now all is fine. I am keen to understand what detects carrier-loss - is it DHCPCD itself? It certainly reported it? And also, whether there's a configuration option to specify retries - number, period etc. Again, is this part of the daemon - I can't find anything about it, or should I be looking somewhere else? Versions: Linux rasp-pi2 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux I took a look at the latest source-code, which appears to be several generations on and features a 'roaming' facility which looks like it is more wifi and its more ethereal nature friendly? Thoughts and comments welcome! Cheers Mark |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi! carrier loss / gain is detected by the kernel driver for the interface and then advertised via netlink(7) RTM_NEWLINK message. dhcpcd reports these events and certainly 6.11.5 is an old version where the handling throughout has seen many improvements. |
Beta Was this translation helpful? Give feedback.
-
Hi there! I recently started to use dhpcd and was wondering about when hooks are actually called, if it comes to CARRIER/NOCARRIER state changes: However subsequent cable pulling/re-plugging is detected by dhcpcd and route setting/deliting is done correctly, however, the hooks arent called for those carrier events. I was wondering if this is the expected behaviour? Thx and regards, Harry |
Beta Was this translation helpful? Give feedback.
Hi!
carrier loss / gain is detected by the kernel driver for the interface and then advertised via netlink(7) RTM_NEWLINK message.
dhcpcd has changed over the years on what it reads from this to work out carrier loss / gain and the kernel has gained features in this area as well, such as partial carrier such as wireless roaming.
dhcpcd reports these events and certainly 6.11.5 is an old version where the handling throughout has seen many improvements.
Certainly that version is so old it might interpret the roaming features now reported by the kernel as incorrect and not recover from it.
I would upgrade for sure.