Refactored linkaggtx, putting the packet creation and ring set up in
separate functions.