port atlys spartan-3 udp code to spartan-6