summaryrefslogtreecommitdiff
path: root/src/net/ethernet.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-08-10 12:34:23 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-08-10 12:34:23 +0200
commitd9638539eb82b74d9efc7abb0d71b2deb68a2547 (patch)
tree291449768c8c4e6c84f8a6b5a10e3d026215787b /src/net/ethernet.c
parent235551b84395233770f525714dee257ffb0e4842 (diff)
downloadabaos-d9638539eb82b74d9efc7abb0d71b2deb68a2547.tar.gz
abaos-d9638539eb82b74d9efc7abb0d71b2deb68a2547.tar.bz2
some renamed in ethernet/rtl8139
don't try tp play with the ethernet CRCs, they belong to layer 2 OSI, the firmware of the network card rtl8139: computing packet size correctly (sizeof uint32_t of the CRC was part of the payload len)
Diffstat (limited to 'src/net/ethernet.c')
-rw-r--r--src/net/ethernet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/ethernet.c b/src/net/ethernet.c
index bf8bb93..539764b 100644
--- a/src/net/ethernet.c
+++ b/src/net/ethernet.c
@@ -2,7 +2,7 @@
#include "stdio.h"
-char *network_mac_address_to_string( network_mac_address_t mac, char *buf, size_t buflen )
+char *ethernet_mac_address_to_string( network_mac_address_t mac, char *buf, size_t buflen )
{
snprintf( buf, buflen, "%X:%X:%X:%X:%X:%X",
mac.byte[0], mac.byte[1], mac.byte[2],
@@ -10,4 +10,3 @@ char *network_mac_address_to_string( network_mac_address_t mac, char *buf, size_
return buf;
}
-