git.ucc.asn.au
/
tpg
/
acess2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
abd19cbdd1da0709790365cd9102663b0eb1133c
[tpg/acess2.git]
/
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
};
20
21
// === CONSTANTS ===
22
enum eICMPTypes
23
{
24
ICMP_ECHOREPLY = 1,
25
ICMP_UNREACHABLE = 3,
26
ICMP_QUENCH = 4,
27
ICMP_REDIRECT = 5,
28
ICMP_ALTADDR = 6,
29
ICMP_ECHOREQ = 8,
30
ICMP_TRACE = 30 // Information Request
31
};
32
33
#endif
UCC
git Repository :: git.ucc.asn.au