networkprotocols/ipeventnotifier/inc/DHCPUnicastTranslator.h
author Dario Sestito <darios@symbian.org>
Thu, 28 Oct 2010 13:54:27 +0100
branchRCL_3
changeset 77 8c9903e4e6b4
parent 0 af10295192d8
permissions -rw-r--r--
Workaround for bug 3738

// Copyright (c) 2006-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:
//

/**
 @file DHCPUnicastTranslator.h
 @internalTechnology
*/


#ifndef __DHCPUNICASTTRANSLATOR_H__
#define __DHCPUNICASTTRANSLATOR_H__

#include <e32std.h>
#include <ip6_hook.h>


/**
 *  DHCP Unicast Translator hook class.
 *   Detects unicast BOOTP traffic and converts it to broadcast
 */
class CDHCPUnicastTranslator : public CIp6Hook
	{
public:

	CDHCPUnicastTranslator(CProtocolInet6Binder& aIP);
	~CDHCPUnicastTranslator();

	// Fills in structure with info about this protocol
	void Identify(TServerProtocolDesc* aProtocolDesc)const;
	static void FillIdentification(TServerProtocolDesc& anEntry);

	// Called by the stack for every incoming packet
	TInt ApplyL(RMBufHookPacket& aPacket, RMBufRecvInfo& aInfo);

private:

	CProtocolInet6Binder& iParent;
	};



#endif // __DHCPUNICASTTRANSLATOR_H__