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#pragma pack(push,1)
37__declspec(align(2))
38typedef struct _icmp_head_ {
39 unsigned char type;
40 unsigned char code;
41 unsigned short checksum;
42 unsigned short identifier;
43 unsigned short sequenceNum;
44 unsigned char payload[];
46#pragma pack(pop)
47
48 /*
49 * ICMPInitialise -- initialise ICMP
50 */
51extern void ICMPInitialise();
52/*
53 * AuICMPHandle -- ICMP handler
54 */
55extern void AuICMPHandle(IPv4Header* ipv4, AuVFSNode* nic);
56/*
57* CreateICMPSocket -- create a new Internet
58* Control Message Protocol (ICMP) protocol
59*/
60extern int CreateICMPSocket();
61
62#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:45
__declspec(align(2)) typedef struct _icmp_head_
Definition icmp.h:37
IPv4Header
Definition ipv4.h:47
Definition vfs.h:89