aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2021-03-30 18:07:57 -0700
committerPatrick McLean <chutzpah@gentoo.org>2021-03-30 18:11:03 -0700
commit4143e26dd4a56c08fbb99e18913eaafaf2a04f32 (patch)
tree51ea90422328980b7f61370ead9a48b2f2bdd61d /test
parentnet.lo.in: quote variables in _configure_variables (diff)
downloadnetifrc-4143e26dd4a56c08fbb99e18913eaafaf2a04f32.tar.gz
netifrc-4143e26dd4a56c08fbb99e18913eaafaf2a04f32.tar.bz2
netifrc-4143e26dd4a56c08fbb99e18913eaafaf2a04f32.zip
net/iproute2.sh: in _get_mac_address, don't return multiple addresses
Currently if a device has virtual functions configured, ip will list the mac addresses for the virtual functions on a device as well as the device itself. This makes _get_mac_address return these addresses as well, causing functions that consume this output to fail in "interesting" ways. This makes sure it only returns 1 address. Also don't set the mac variable to the address of the interface from sysfs, then proceed to overwrite it with a call to "ip". Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions