Made main code work. Only missing icmp sending and swapping from destIP to destSubnet checking.