XenevaOS
Loading...
Searching...
No Matches
XenevaOS
BaseHdr
Net
icmpv6.h
Go to the documentation of this file.
1
30
#ifndef __ICMPV6_H__
31
#define __ICMPV6_H__
32
33
#include <
Net/ipv6.h
>
34
#include <
Fs/vfs.h
>
35
36
#define ICMPV6_ECHO_REQUEST 128
37
#define ICMPV6_ECHO_REPLY 129
38
#define ICMPV6_ND_RS 133
39
#define ICMPV6_ND_RA 134
40
#define ICMPV6_ND_NS 135
41
#define ICMPV6_ND_NA 136
42
43
#if defined(ARCH_X64) || defined(ARCH_ARM64)
44
#pragma pack(push,1)
45
#endif
46
typedef
struct
_icmpv6_head_
{
47
uint8_t
type
;
48
uint8_t
code
;
49
uint16_t
checksum
;
50
uint16_t
identifier
;
51
uint16_t
sequenceNum
;
52
uint8_t
payload
[];
53
}
ICMPv6Header
;
54
#if defined(ARCH_X64) || defined(ARCH_ARM64)
55
#pragma pack(pop)
56
#endif
57
58
extern
void
ICMPv6Initialise
();
59
extern
void
AuICMPv6Handle
(
IPv6Header
* ipv6,
AuVFSNode
*
nic
);
60
extern
int
CreateICMPv6Socket
();
61
62
#endif
uint8_t
unsigned char uint8_t
Definition
acefiex.h:161
uint16_t
unsigned short int uint16_t
Definition
acefiex.h:162
nic
AuVFSNode * nic
Definition
e1000.cpp:67
ICMPv6Header
struct _icmpv6_head_ ICMPv6Header
ICMPv6Initialise
void ICMPv6Initialise()
Definition
icmpv6.c:46
AuICMPv6Handle
void AuICMPv6Handle(IPv6Header *ipv6, AuVFSNode *nic)
Definition
icmpv6.c:50
CreateICMPv6Socket
int CreateICMPv6Socket()
Definition
icmpv6.c:237
ipv6.h
__VFS_NODE__
Definition
vfs.h:98
_icmpv6_head_
Definition
icmpv6.h:46
_icmpv6_head_::type
uint8_t type
Definition
icmpv6.h:47
_icmpv6_head_::checksum
uint16_t checksum
Definition
icmpv6.h:49
_icmpv6_head_::sequenceNum
uint16_t sequenceNum
Definition
icmpv6.h:51
_icmpv6_head_::code
uint8_t code
Definition
icmpv6.h:48
_icmpv6_head_::identifier
uint16_t identifier
Definition
icmpv6.h:50
_icmpv6_head_::payload
uint8_t payload[]
Definition
icmpv6.h:52
_ipv6_head_
Definition
ipv6.h:49
vfs.h
Generated by
1.9.8