[MDEV-420] extend my_gethwaddr on linux to see disabled interfaces Created: 2012-08-01 Updated: 2015-10-29 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Sergei Golubchik | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
currently my_gethwaddr on linux uses SIOCGIFHWADDR to list all interfaces. That only shows interfaces that are UP. For my_gethwaddr it is absolutely unnecessary limitation. It needs any mac address of any interface. This limitation causes it to fail on systems that have all interfaces disabled for some reason (or only virtual interfaces are UP - in certain virtual machines). It'd be better to change my_gethwaddr to examine all interfaces, UP or DOWN. A relatively easy way of doing it would be to read /sys/class/net/*/address files. Once this is fixed, it should be checked if the following three suppressions
|
| Comments |
| Comment by Kristian Nielsen [ 2013-04-16 ] |
|
For now, I added suppressions to the resulting errors/warnings in the error log, so we can get a green buildbot. These should probably be removed again as part of this fix. |