#include <netinet/ether.h>
#include <stdio.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

#include "ethers.c"

int main(void)
{
	struct ether_addr addr;
	char hostname[1024];
	int fd = open("ethers", O_RDONLY);
	const char *ethers = mmap(NULL, 100000, PROT_READ, MAP_SHARED, fd, 0);

	ether_line(ethers, &addr, hostname);

	printf("%s\n", hostname);

	return 0;
}
