Description: |
|
---|
3087 libuuid has a lot of dependencies
Review Request #2434 — Created Nov. 4, 2019 and updated
Information | |
---|---|
gwr | |
illumos-gate | |
3087 | |
Reviewers | |
general | |
3087 libuuid has a lot of dependencies
The "get my ARP entry" method is fragile (depends on hostname resolving to an external IP address) and not worth the trouble. We can do just as well (and arguably better) by doing like most other libuuid implementations do and just use ioctl SIOCGIFCONF, SIOCGIFHWADDR (or similar).
Ran uuidgen as both root and a regular user, and examined truss outputs.
-
Have you tested this in cases where you don't have an IP interface plumbed at all? I suspect that this will cause a regression where by an interface that was not plumbed with IP (which can be common), will no longer have its MAC address discovered, where as it would have with the dlpi_walk() and the dlpi_get_physaddr() call.