networkprotocols/tcpipv4v6prt/inc/icmp6.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2004-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 // icmp6.h - ICMPv6 protocol
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 /**
       
    20  @internalComponent
       
    21 */
       
    22 #ifndef __ICMP6_H__
       
    23 #define __ICMP6_H__
       
    24 
       
    25 #include <es_prot.h>
       
    26 #include <in_sock.h>
       
    27 #include <icmp6_hdr.h>	// Not used by this header--remove?
       
    28 #include <es_prot_internal.h>
       
    29 
       
    30 //
       
    31 //	*****
       
    32 //	ICMP6
       
    33 //	*****
       
    34 //
       
    35 class CProtocolInet6Base;
       
    36 class ICMP6
       
    37 	{
       
    38 public:
       
    39 	// Implemented in PRT...
       
    40 	static CProtocolBase *NewL(TInt aVersion = KProtocolInet6Icmp);
       
    41 	static void Identify(TServerProtocolDesc &aEntry, TInt aVersion = KProtocolInet6Icmp);
       
    42 	// Implemented in SAP (and called from PRT NewSAPL)
       
    43 	static CServProviderBase *NewSAPL(TUint aSockType, CProtocolInet6Base *aProtocol, TInt aId);
       
    44 	};
       
    45 
       
    46 const TInt  KICMP6MaxSockets		= KUnlimitedSockets;
       
    47 const TInt  KICMP6MaxDatagramSize	= 0xffff-128;	// ...just pick some number...
       
    48 const TUint KICMP6ServiceTypeInfo	= ESocketSupport | ETransport | EPreferMBufChains | ENeedMBufs | EUseCanSend;
       
    49 const TUint KICMP6ServiceInfo		= KSIConnectionLess | KSIMessageBased | KSIBroadcast | KSIPeekData | KSIGracefulClose | KSIRequiresOwnerInfo;
       
    50 const TUint KICMP6NameServiceInfo	= KNSNameResolution | KNSRequiresConnectionStartup; // | KNSServiceResolution | KNSInfoDatabase;
       
    51 //
       
    52 
       
    53 #endif