XenevaOS
Loading...
Searching...
No Matches
XenevaOS
BaseHdr
Net
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))
40
typedef 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[];
47
}
ICMPHeader
;
48
#ifdef ARCH_X64
49
#pragma pack(pop)
50
#endif
51
52
/*
53
* ICMPInitialise -- initialise ICMP
54
*/
55
extern
void
ICMPInitialise
();
56
/*
57
* AuICMPHandle -- ICMP handler
58
*/
59
extern
void
AuICMPHandle
(
IPv4Header
* ipv4,
AuVFSNode
*
nic
);
60
/*
61
* CreateICMPSocket -- create a new Internet
62
* Control Message Protocol (ICMP) protocol
63
*/
64
extern
int
CreateICMPSocket
();
65
66
#endif
nic
AuVFSNode * nic
Definition
e1000.cpp:67
CreateICMPSocket
int CreateICMPSocket()
Definition
icmp.cpp:239
AuICMPHandle
void AuICMPHandle(IPv4Header *ipv4, AuVFSNode *nic)
Definition
icmp.cpp:58
ICMPInitialise
void ICMPInitialise()
Definition
icmp.cpp:231
ICMPHeader
ICMPHeader
Definition
icmp.h:47
__declspec
__declspec(align(2)) typedef struct _icmp_head_
Definition
icmp.h:39
ipv4.h
IPv4Header
IPv4Header
Definition
ipv4.h:49
__VFS_NODE__
Definition
vfs.h:95
vfs.h
Generated by
1.9.8