HF RL Explorer

Task: Implement a Ping Utility in C

Task: Implement a Ping Utility in C: a task in Terminal-Lego-15k (Harbor dataset). Write a C program that pings a given IP address and performs different actions based on whether the ping was successful or not. The program should use raw ICMP sockets to send an ICMP Echo Request and listen for an…

The task

Write a C program that pings a given IP address and performs different actions based on whether the ping was successful or not. The program should use raw ICMP sockets to send an ICMP Echo Request and listen for an ICMP Echo Reply, implementing the ping functionality directly rather than calling the system `ping`…

Part of PrimeIntellect/Terminal-Lego-15k.