Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
icmp.h File Reference
#include "net/ipv4.h"
#include "net/netdev.h"
#include <type.h>

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 []
 

Function Documentation

◆ __attribute__()

struct icmp_header __attribute__ ( (packed) )

Definition at line 1 of file tcp.h.

◆ handle_icmp()

Variable Documentation

◆ checksum

uint16_t checksum

Definition at line 2 of file icmp.h.

◆ code

uint8_t code

Definition at line 1 of file icmp.h.

Referenced by input_report_key(), HIDKeyboard::parse_report(), and syscall_arch_prctl().

◆ data

uint8_t data[]

Definition at line 7 of file icmp.h.

◆ identifier

uint16_t identifier

Definition at line 4 of file icmp.h.

Referenced by IOForgeBlock::create(), and registerBlockDevice().

◆ sequence

uint16_t sequence

Definition at line 5 of file icmp.h.

Referenced by __attribute__().

◆ type

uint8_t type

Definition at line 0 of file icmp.h.