clear arp table ubuntu]

C++
ip -s -s neigh flush all
Source

Also in C++: