Linux program to send and receive packets