VBoxNetIntIf.cpp revision 3c5c103b8213e6b372e00f0fa949960ecf776954
/* $Id$ */
/** @file
* VBoxNetIntIf - IntNet Interface Client Routines.
*/
/*
* Copyright (C) 2009 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#define LOG_GROUP LOG_GROUP_DEFAULT
#include "VBoxNetLib.h"
#include <VBox/intnetinline.h>
/**
* Flushes the send buffer.
*
* @returns VBox status code.
* @param pSession The support driver session.
* @param hIf The interface handle to flush.
*/
{
}
/**
* Copys the SG segments into the specified fram.
*
* @param pvFrame The frame buffer.
* @param cSegs The number of segments.
* @param paSegs The segments.
*/
{
{
}
}
/**
* Writes a frame packet to the buffer.
*
* @returns VBox status code.
* @param pBuf The buffer.
* @param pRingBuf The ring buffer to read from.
* @param cSegs The number of segments.
* @param paSegs The segments.
*/
int VBoxNetIntIfRingWriteFrame(PINTNETBUF pBuf, PINTNETRINGBUF pRingBuf, size_t cSegs, PCINTNETSEG paSegs)
{
/*
* Validate input.
*/
/*
* Calc frame size.
*/
/*
* Allocate a frame, copy the data and commit it.
*/
if (RT_SUCCESS(rc))
{
return VINF_SUCCESS;
}
return rc;
}
/**
* Sends a frame
*
* @returns VBox status code.
* @param pSession The support driver session.
* @param hIf The interface handle.
* @param pBuf The interface buffer.
* @param cSegs The number of segments.
* @param paSegs The segments.
* @param fFlush Whether to flush the write.
*/
{
if (rc == VERR_BUFFER_OVERFLOW)
{
}
return rc;
}