|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
Go to the source code of this file.
Data Structures | |
| struct | icmp_header |
| struct | icmp_echo |
Functions | |
| struct icmp_header | __attribute__ ((packed)) |
| void | handle_icmp (netdev_t *dev, struct ipv4_header *ip, uint8_t mac_dst[6]) |
Variables | |
| uint8_t | type |
| uint8_t | code |
| uint16_t | checksum |
| uint16_t | identifier |
| uint16_t | sequence |
| uint8_t | data [] |
| struct icmp_header __attribute__ | ( | (packed) | ) |
| 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().
| uint8_t code |
Definition at line 1 of file icmp.h.
Referenced by input_report_key(), HIDKeyboard::parse_report(), and syscall_arch_prctl().
| uint16_t identifier |
Definition at line 4 of file icmp.h.
Referenced by IOForgeBlock::create(), and registerBlockDevice().
| uint16_t sequence |
Definition at line 5 of file icmp.h.
Referenced by __attribute__().