receive of icmp work, needs statistics and missing settings

This commit is contained in:
2025-04-30 18:20:59 +02:00
parent 0021a51f61
commit b4afb26076
5 changed files with 54 additions and 28 deletions

View File

@ -6,7 +6,7 @@
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/24 22:49:22 by tomoron #+# #+# */
/* Updated: 2025/04/29 19:09:11 by tomoron ### ########.fr */
/* Updated: 2025/04/30 17:53:19 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
#include "includes/ft_ping.h"
@ -23,7 +23,7 @@ static void set_packet_data(uint8_t *packet_data)
}
}
static uint16_t calc_checksum(void *ptr, size_t len)
uint16_t calc_checksum(void *ptr, size_t len)
{
uint32_t res;
uint16_t *data;