voipplugins/dhcppositionprovider/inc/dhcpconstants.h
changeset 0 a4daefaec16c
equal deleted inserted replaced
-1:000000000000 0:a4daefaec16c
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Hold common definations for dhcppositionprovider psy
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DHCPCONSTANTS_H
       
    20 #define DHCPCONSTANTS_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 const   TInt    KDhcpMaxAddrLength = 0x100;     // 256dec
       
    25 const   TInt    KDhcpMaxDhcpCivicAddressLength = 0x100;     // 256dec
       
    26 
       
    27 const   TInt    KDhcpDefaultSrvPort = 0x43;
       
    28 const   TInt    KDhcpDefaultCliPort = 0x44;                 // 68dec
       
    29 const   TInt    KDhcpMessageGeoSpatialCoordinates = 0x7B;   // 123dec
       
    30 const   TInt    KDhcpMessageCivicAddress = 0x63;            // 99dec
       
    31 const   TInt    KDhcpMaxResponseDhcpGeoConfLength = 0x10;   // 16dec
       
    32 
       
    33 const   TUint8  KDhcpMagicCookie[]  = {0x63, 0x82, 0x53, 0x63} ;
       
    34 const   TUint8  KDhcpDhcpMsgInform[] =  {0x35, 0x01, 0x08};
       
    35 const   TUint8  KDhcpDhcpParameterRequestList[] = {0x37, 0x02};
       
    36 const   TUint8  KDhcpGeoOptionParams[] =  {0x7B, 0x63};
       
    37 const   TUint8  KDhcpMessageSize[] = {0x39, 0x02, 0x02, 0x40};
       
    38 const   TUint8  KDhcpEndOfMessage[] =  {0xFF};
       
    39 
       
    40 const   TInt    KDhcpMaxLocInfoLength = 0x800;      // 2048dec
       
    41 const   TInt    KDhcpMaxOverheadLength = 0x4b0;     // 1200dec
       
    42 
       
    43 const TInt KDhcpMacByteSeparatorChr = '-';
       
    44 
       
    45 _LIT( KDhcpUdp, "udp");
       
    46 
       
    47 _LIT8( KDhcpIpv4AddressFrmt, "%d.%d.%d.%d");
       
    48 
       
    49 const TInt KDhcpIPAddressLength = 0x27; // Max chars what ipv6 can contain without
       
    50                                         // compacting it.
       
    51 #endif  // DHCPCONSTANTS_H
       
    52