git.ucc.asn.au
/
tpg
/
acess2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
VIAVideo - Does something different now!
[tpg/acess2.git]
/
KernelLand
/
Modules
/
IPStack
/
icmp.h
1
/*
2
* Acess2 IP Stack
3
* - ICMP Handling
4
*/
5
#ifndef _ICMP_H_
6
#define _ICMP_H_
7
8
// === TYPEDEFS ===
9
typedef struct sICMPHeader tICMPHeader;
10
11
// === STRUCTURES ===
12
struct sICMPHeader
13
{
14
Uint8 Type;
15
Uint8 Code;
16
Uint16 Checksum;
17
Uint16 ID;
18
Uint16 Sequence;
19
Uint8 Data[];
20
};
21
22
// === CONSTANTS ===
23
enum eICMPTypes
24
{
25
ICMP_ECHOREPLY = 0,
26
ICMP_UNREACHABLE = 3,
27
ICMP_QUENCH = 4,
28
ICMP_REDIRECT = 5,
29
ICMP_ALTADDR = 6,
30
ICMP_ECHOREQ = 8,
31
ICMP_TRACE = 30 // Information Request
32
};
33
34
#endif
UCC
git Repository :: git.ucc.asn.au