Update request_ports.c

Repaired Dally algorithm functions