chucker / AltNetworkUtility

A clone of Apple's now-discontinued Network Utility
MIT License
3 stars 0 forks source link

NetworkInterfaceRepository #26

Closed chucker closed 3 years ago

chucker commented 3 years ago

Right now, we have:

Also, GetAvailableInterfaces reloads the list, but TryFindInterfaceByName does not. And GetAvailableInterfaces is (I believe) called twice, so we have two different instances of the list.

We should probably refactor this a lot. Something like:

chucker commented 3 years ago

How do we define precedence, though?

Something like this, maybe?

  1. if SystemConfiguration tells us an interface is up, believe it
  2. otherwise, check if .NET (or BSD?) has assigned it a unicast IP address
chucker commented 3 years ago

This introduces a slight inconsistency: Bluetooth PAN shows up (and does not in NU).

chucker commented 3 years ago

Anything else?