|
ArvernOS
|
Data Structures | |
| struct | icmpv4_echo_t |
| struct | icmpv4_reply_t |
Functions | |
| void | icmpv4_receive_packet (net_interface_t *interface, uint8_t *packet, ipv4_header_t *header) |
| int | icmpv4_send_packet (net_interface_t *interface, uint8_t ip[4], icmpv4_reply_t *reply) |
| void icmpv4_receive_packet | ( | net_interface_t * | interface, |
| uint8_t * | packet, | ||
| ipv4_header_t * | header ) |
Receives a ICMPv4 packet.
| interface | the interface on which the ICMPv4 packet has been received |
| packet | the ICMPv4 packet |
| ipv4_header | the IPv4 header |
| int icmpv4_send_packet | ( | net_interface_t * | interface, |
| uint8_t | ip[4], | ||
| icmpv4_reply_t * | reply ) |
"Pings" an IPv4 address, i.e. sends an ICMPv4 packet to it and waits for an ICMPv4 reply.
| interface | the interface to use to send the ICMPv4 request |
| ip | the IPv4 address to ping |
| reply | the ICMPv4 reply |
0 on success, something else otherwise Create ICMPv4 ECHO packet.