telephonyprotocols/rawipnif/src/IPv6Binder.cpp
branchRCL_3
changeset 7 fe8b59ab9fa0
parent 5 7ef16719d8cb
child 9 2492a6e4aed7
equal deleted inserted replaced
6:fc69e1e37771 7:fe8b59ab9fa0
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   327 MLowerDataSender::TSendResult CIPv6Binder::Send(RMBufChain& aPdu)
   327 MLowerDataSender::TSendResult CIPv6Binder::Send(RMBufChain& aPdu)
   328 /**
   328 /**
   329  * Called by the protocol to send an outgoing IP packet to the network.
   329  * Called by the protocol to send an outgoing IP packet to the network.
   330  *
   330  *
   331  * @param aPdu The outgoing packet
   331  * @param aPdu The outgoing packet
   332  * @return Standard error codes
   332  * @return MLowerDataSender::ESendBlocked or ESendAccepted based on state of flow.
   333  */
   333  */
   334 	{
   334 	{
   335 	_LOG_L1C1(_L8("CIPv6Binder::Send"));
   335 	_LOG_L1C1(_L8("CIPv6Binder::Send"));
   336 
   336 
   337 #ifdef __BTT_LOGGING__
   337 #ifdef __BTT_LOGGING__
   338 	LogPacket(aPdu);
   338 	LogPacket(aPdu);
   339 #endif
   339 #endif
   340 
   340 
   341 	// Return <0: an error occurred
   341     // Return ESendBlocked: flow cannot accept any more packets [blocked, queue full, etc]
   342 	// Return  0: no error, but don't send any more packets
   342     // Return ESendAccepted: flow has accepted this packet and can accept another.
   343 
   343 	
   344 	return static_cast<MLowerDataSender::TSendResult>(GetFlow().SendPacket(aPdu, NULL, KIp4FrameType));
   344 	return GetFlow().SendPacket(aPdu, NULL, KIp4FrameType);
   345 	}
   345 	}
   346 
   346 
   347 TInt CIPv6Binder::Notification(TAgentToNifEventType /*aEvent*/, 
   347 TInt CIPv6Binder::Notification(TAgentToNifEventType /*aEvent*/, 
   348 	void* /*aInfo*/)
   348 	void* /*aInfo*/)
   349 /**
   349 /**