XenevaOS
Loading...
Searching...
No Matches
icmp.h
Go to the documentation of this file.
1
30#ifndef __ICMP_H__
31#define __ICMP_H__
32
33#include <Net/ipv4.h>
34#include <Fs/vfs.h>
35
36#ifdef ARCH_X64
37#pragma pack(push,1)
38#endif
39__declspec(align(2))
40typedef struct _icmp_head_ {
41 unsigned char type;
42 unsigned char code;
43 unsigned short checksum;
44 unsigned short identifier;
45 unsigned short sequenceNum;
46 unsigned char payload[];
48#ifdef ARCH_X64
49#pragma pack(pop)
50#endif
51
52 /*
53 * ICMPInitialise -- initialise ICMP
54 */
55extern void ICMPInitialise();
56/*
57 * AuICMPHandle -- ICMP handler
58 */
59extern void AuICMPHandle(IPv4Header* ipv4, AuVFSNode* nic);
60/*
61* CreateICMPSocket -- create a new Internet
62* Control Message Protocol (ICMP) protocol
63*/
64extern int CreateICMPSocket();
65
66#endif
AuVFSNode * nic
Definition e1000.cpp:67
int CreateICMPSocket()
Definition icmp.cpp:239
void AuICMPHandle(IPv4Header *ipv4, AuVFSNode *nic)
Definition icmp.cpp:58
void ICMPInitialise()
Definition icmp.cpp:231
ICMPHeader
Definition icmp.h:47
__declspec(align(2)) typedef struct _icmp_head_
Definition icmp.h:39
IPv4Header
Definition ipv4.h:49
Definition vfs.h:95