modification of Andrew Kirkhams MODDMA code to send packets over Ethernet