equal
deleted
inserted
replaced
|
1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // const.h - icmp echo client constants |
|
15 // This software has been implemented in the 6PACK |
|
16 // project at the Mobile Networks Laboratory (MNW) |
|
17 // http://www.research.nokia.com/projects/6pack/ |
|
18 // |
|
19 |
|
20 #ifndef __CONST_H |
|
21 #define __CONST_H |
|
22 |
|
23 #define KHostNameLimit 80 |
|
24 |
|
25 #define ICMP_ECHO_HEADER_SIZE 8 //Size of a ICMP header echo request/reply |
|
26 #define MAX_IP_PACKETLEN 65535 //Determined by the 16-bit field total length |
|
27 #define MAX_IP_HDRLEN 60 //Determined by the 4-bit field header length |
|
28 #define ICMP_HDRLEN 8 //Defined the HDR for a ECHO_REQUEST ICMP packet |
|
29 |
|
30 // Maximum ICMP Packet Data size |
|
31 #define MAX_ICMP_PACKETSIZE MAX_IP_PACKETLEN - MAX_IP_HDRLEN - ICMP_HDRLEN |
|
32 |
|
33 #endif |