aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/net/eepro.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2015-03-02 16:25:53 +0000
committerMichael Brown <mcb30@ipxe.org>2015-03-02 16:35:37 +0000
commit01d16d821f4218ce0db9257013d0ad9b339cabe6 (patch)
tree15cd12a97c17dd6806bcb32e204cc510aed9719a /src/drivers/net/eepro.c
parent8ab4b00442759ff9b61f5e813b73d29d91c4ae5f (diff)
downloadipxe-01d16d821f4218ce0db9257013d0ad9b339cabe6.tar.gz
[libc] Rewrite byte-swapping code
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/eepro.c')
-rw-r--r--src/drivers/net/eepro.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/net/eepro.c b/src/drivers/net/eepro.c
index 5c3ea6423..97b4c4061 100644
--- a/src/drivers/net/eepro.c
+++ b/src/drivers/net/eepro.c
@@ -601,9 +601,9 @@ static int eepro_probe ( struct nic *nic, struct isa_device *isa ) {
l_eepro = 0;
name = "Intel 82595-based LAN card";
}
- station_addr.saddr[0] = swap16(station_addr.saddr[0]);
- station_addr.saddr[1] = swap16(station_addr.saddr[1]);
- station_addr.saddr[2] = swap16(station_addr.saddr[2]);
+ station_addr.saddr[0] = bswap_16(station_addr.saddr[0]);
+ station_addr.saddr[1] = bswap_16(station_addr.saddr[1]);
+ station_addr.saddr[2] = bswap_16(station_addr.saddr[2]);
for (i = 0; i < ETH_ALEN; i++) {
nic->node_addr[i] = station_addr.caddr[i];
}