|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
#include "icmp.h"#include "libk/serial.h"#include <str.h>#include "net/ethernet.h"#include "net/ip_type.h"#include "net/ipv4.h"#include "net/netbuff.h"#include "net/socket.h"#include "netutils.h"Go to the source code of this file.
Functions | |
| void | handle_icmp (netdev_t *dev, struct ipv4_header *ip, uint8_t mac_dst[6]) |
| void handle_icmp | ( | netdev_t * | dev, |
| struct ipv4_header * | ip, | ||
| uint8_t | mac_dst[6] ) |
Definition at line 11 of file icmp.c.
References icmp_echo::checksum, checksum16_adc(), create_netbuff(), ipv4_header::flags_fragment, free_netbuff(), ipv4_send(), LOG2_WARN, memcopy(), netbuff_put(), ipv4_header::src_ip, ipv4_header::total_length, icmp_echo::type, icmp_header::type, ipv4_header::version_ihl, vxInetNtoa(), and vxNtohs().
Referenced by socket_receive().