3 ms·
Having a default route does not mean the internet is reachable.
by xenospn 6y ago
Having a default route does not mean the internet is reachable.
- eptcyka 6y agoI wish Apple agreed. But on the other hand, there are use cases where checking for the existence of a default route is the best heuristic.
- Spivak 6y agoI mean that's what a default route is supposed to mean, right? That this machine can route to any address. It might not get there because of a firewall, or because nothing is at a given address but you're at least claiming to know what to do with a packet destined for anywhere.
- ryukafalz 6y agoI think that’s a reasonable assumption for applications to make. I think that’s a less reasonable assumption for your keyboard to make.
- deleted 6y ago[deleted]
- easton 6y agoProbably why the other discussed function exists: > Similarly, all macOS machines will test a DHCP supplied default route before applying it by trying to reach something on the internet. So if you happen to have some firewall rules that block internet access, no default route will be applied until the internet check times out. So if the default route doesn't exist yet since it's still checking for internet, it would let you use the keyboard. DHCP probably runs every time the NIC is turned on (like from sleep), and they could just disable this function if you've set a static default route (since they may not be able to reach their NTP server on that route).
- eptcyka 6y agoThe default route verification is separate from the keyboard issue. I don't know exactly what is going on here, but in the above post what I mean by the system applying a default route is that the route isn't propagated to the system configration's dynamic store and whatever macOS uses for netlink, i.e. the route doesn't show up in `route monitor` until the check finishes. However, I do believe it would still be used at some level, either on the T2 or in the kernel to do the NTP stuff.
- sroussey 6y agoThe T2 has its own OS, so that makes sense.