natplugins/natpcliprovisioningnatfwadapter/inc/natfwdefaults.h
author hgs
Fri, 28 May 2010 16:08:43 +0300
changeset 23 a297cbce4e85
parent 0 1bce908db942
permissions -rw-r--r--
201021

/*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Holds default values for NAT/FW Traversal adapter.
*
*/


#include <e32base.h>

// Common defaults.
const TInt KDefaultUDPRefreshInterval      = 28;   // seconds
const TInt KDefaultTCPRefreshInterval      = 1200; // seconds (20 minutes)

// IAP specific defaults.
const TInt KDefaultSTUNRetransmitTimer     = 250; // milliseconds

// Domain specific defaults.
const TInt KDefaultSTUNPort                = 3478;
const TInt KDefaultCRLFRefreshInterval     = 0;
const TInt KDefaultDisableStunSharedSecret = 0;
_LIT8( KDefaultNatProtocol,                 "nokia.stun" );
const TInt KDefaultStartPort               = 49152;    // TODO: selvitettävä!
const TInt KDefaultEndPort                 = 49200;    // TODO: selvitettävä!
// ICE specific defaults.
_LIT8( KDefaultNatUtilities,                "nokia.stun,nokia.turn" );
const TInt KDefaultHostPref                = 126;
const TInt KDefaultServerReflexivePref     = 100;
const TInt KDefaultRelayPref               = 0;
const TInt KDefaultPeerReflexivePref       = 110;
const TInt KDefaultIPv4Pref                = 60;
const TInt KDefaultIPv6Pref                = 40;
const TInt KDefaultVPNPref                 = 20;
const TInt KDefaultUDPPref                 = 15;
const TInt KDefaultTCPPref                 = 6;
const TInt KDefaultTCPActivePref           = 5;
const TInt KDefaultTCPPassivePref          = 2;
const TInt KDefaultTCPSimultaneousPref     = 7;
// TURN specific defaults.
_LIT8( KDefaultStunSrvAddr,                 "" );
_LIT8( KDefaultTurnSrvAddr,                 "" );
const TInt KDefaultTURNPort                = 3478;

// Other.
const TInt KMaxCharsInTUint32              = 10;
const TInt KNotSet                         = -1;
const TInt KNotSaved                       = -1;
const TInt KFourKeysInIAPSpecific          = 4;
const TInt KSixKeysInDomainSpecific        = 6;