From ddba89ee60973ca38ff88fc31f7bbf9d909ccbe1 Mon Sep 17 00:00:00 2001 From: tomoron Date: Wed, 20 Aug 2025 15:58:54 +0200 Subject: [PATCH] fix ttl --- srcs/ft_ping.c | 2 +- srcs/parsing.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/srcs/ft_ping.c b/srcs/ft_ping.c index 65a71c9..d0a627f 100644 --- a/srcs/ft_ping.c +++ b/srcs/ft_ping.c @@ -6,7 +6,7 @@ /* By: tomoron +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/26 19:54:25 by tomoron #+# #+# */ -/* Updated: 2025/08/13 16:59:55 by tomoron ### ########.fr */ +/* Updated: 2025/08/20 15:58:48 by tomoron ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/srcs/parsing.c b/srcs/parsing.c index 60fcda9..43c667d 100644 --- a/srcs/parsing.c +++ b/srcs/parsing.c @@ -6,7 +6,7 @@ /* By: tomoron +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/26 17:01:53 by tomoron #+# #+# */ -/* Updated: 2025/08/18 15:50:29 by tomoron ### ########.fr */ +/* Updated: 2025/08/20 15:58:13 by tomoron ### ########.fr */ /* */ /* ************************************************************************** */ #include "includes/ft_ping.h" @@ -131,6 +131,7 @@ int parse_args(int argc, char **argv, t_settings *set) break; case 1000: set->ttl = get_set_int(optarg, set); + set->setTtl = 1; break; case 'h': case '?':