summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/eepro.c
diff options
context:
space:
mode:
authorMichael Brown2015-03-02 17:25:53 +0100
committerMichael Brown2015-03-02 17:35:37 +0100
commit01d16d821f4218ce0db9257013d0ad9b339cabe6 (patch)
tree15cd12a97c17dd6806bcb32e204cc510aed9719a /src/drivers/net/eepro.c
parent[libc] Rewrite setjmp() and longjmp() (diff)
downloadipxe-01d16d821f4218ce0db9257013d0ad9b339cabe6.tar.gz
ipxe-01d16d821f4218ce0db9257013d0ad9b339cabe6.tar.xz
ipxe-01d16d821f4218ce0db9257013d0ad9b339cabe6.zip
[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 5c3ea642..97b4c406 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];
}