natplugins/natpdevmgmtnatfwadapter/inc/natfwdefaults.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  Holds default values for DM NAT/FW Traversal adapter.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 // Common defaults.
       
    22 const TInt KDefaultUDPRefreshInterval      = 28;   // seconds
       
    23 const TInt KDefaultTCPRefreshInterval      = 1200; // seconds (20 minutes)
       
    24 
       
    25 // IAP specific defaults.
       
    26 const TInt KDefaultSTUNRetransmitTimer     = 250; // milliseconds
       
    27 
       
    28 // Domain specific defaults.
       
    29 _LIT8( KDefaultSTUNSrvAddr,                 "0.0.0.0" );
       
    30 const TInt KDefaultCRLFRefreshInterval     = 0;
       
    31 const TInt KDefaultSTUNPort                = 3478;
       
    32 const TInt KDefaultDisableStunSharedSecret = 0;
       
    33 const TInt KDefaultStartPort               = 49152;
       
    34 const TInt KDefaultEndPort                 = 49200;
       
    35 _LIT8( KDefaultNatProtocol,                 "nokia.stun" );
       
    36 // ICE specific defaults.
       
    37 _LIT8( KDefaultNatUtilities,                "nokia.stun,nokia.turn" );
       
    38 const TInt KDefaultHostPref                = 126;
       
    39 const TInt KDefaultServerReflexivePref     = 100;
       
    40 const TInt KDefaultRelayPref               = 0;
       
    41 const TInt KDefaultPeerReflexivePref       = 110;
       
    42 const TInt KDefaultIPv4Pref                = 60;
       
    43 const TInt KDefaultIPv6Pref                = 40;
       
    44 const TInt KDefaultVPNPref                 = 20;
       
    45 const TInt KDefaultUDPPref                 = 15;
       
    46 const TInt KDefaultTCPPref                 = 6;
       
    47 const TInt KDefaultTCPActivePref           = 5;
       
    48 const TInt KDefaultTCPPassivePref          = 2;
       
    49 const TInt KDefaultTCPSimultaneousPref     = 7;
       
    50 // TURN specific defaults.
       
    51 _LIT8( KDefaultTURNSrvAddr,                 "0.0.0.0" );
       
    52 const TInt KDefaultTURNSrvPort             = 3478;