networkprotocols/tcpipv4v6prt/inc/ip6_rth.h
changeset 0 af10295192d8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/networkprotocols/tcpipv4v6prt/inc/ip6_rth.h	Tue Jan 26 15:23:49 2010 +0200
@@ -0,0 +1,41 @@
+// Copyright (c) 2004-2009 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:
+// ip6_rth.h - default hook for IPv6 routing header
+// The default handler for IPv6 Routing Header which is implicitly
+// bound to the protocol processing loop by the ip6.cpp.  Only only
+// Routing Header with Type=0 is processed, others are left
+// untouched.
+//
+
+
+
+/**
+ @internalComponent
+*/
+#ifndef __IP6_RTH_H__
+#define __IP6_RTH_H__
+
+#include <in_bind.h>
+
+class CRoutingHeaderHook : public CIp6Hook
+	{
+public:
+	CRoutingHeaderHook(MNetworkService *aProtocol) : iProtocol(aProtocol) {}
+	void ConstructL();
+	TInt ApplyL(RMBufHookPacket &aPacket, RMBufRecvInfo &aInfo);
+private:
+	MNetworkService *iProtocol;
+	};
+
+#endif