「🔨」 fix: fixed loop issue (yes when i ping my self i recieve my pings D:)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user