summaryrefslogtreecommitdiff
path: root/src/net/ethernet.c
blob: 539764b2ae3cb9d950fd00c226fc911879961938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "ethernet.h"

#include "stdio.h"

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],
		mac.byte[3], mac.byte[4], mac.byte[5] );

	return buf;
}