Add: error manager

Added function to print errors corresponding to the packet type and code values
This commit is contained in:
vauden
2024-11-19 18:51:04 +01:00
parent 26d9f40030
commit 6cd5b0618d
6 changed files with 183 additions and 39 deletions

View File

@@ -2,7 +2,8 @@ NAME = ./ft_ping
SRCS = src/main.c \
src/utils.c \
src/flags.c
src/flags.c \
src/packets.c
OBJ_DIR = objs
@@ -32,8 +33,6 @@ $(OBJ_DIR)/%.o: %.c
all: $(NAME)
$(NAME): $(OBJ_DIR) $(OBJS)
@echo "\e[1;32m[linking "$(MODE)" {"$(CC)"}...]\e[1;00m "$@
@$(CC) -o $(NAME) $(OBJS) -lm