🔨」 fix: fixed loop issue (yes when i ping my self i recieve my pings D:)

This commit is contained in:
2025-08-17 21:58:01 +02:00
parent de4d18ccb7
commit ede9b5b24c
2 changed files with 7 additions and 9 deletions

View File

@ -58,9 +58,7 @@ int send_ping(int socket, struct sockaddr_in *dest, options_t opt) {
while (727) {
int seq = tx_count;
printf("seq = %d\n", seq);
init_packet(sendbuf, seq, opt.size);
// write(1, sendbuf, opt.size);
gettimeofday(&pkt_start, NULL);
bytes = send_icmp(socket, sendbuf, &addr, opt.size);
@ -92,7 +90,6 @@ int send_ping(int socket, struct sockaddr_in *dest, options_t opt) {
return EXIT_SUCCESS;
}
// TODO: fix this shitty loop
int ping(args_t *args) {
int ret;
options_t opt = init_opt(args);