int main() { sock = arp_bind("address"); while (1) { arp_recv(sock, buf); arp_send(target, data); } return 0; }