NetIfList-linux.cpp revision b642fb1edcf7e8c0ddb37bed00c3960e9368e5e1
/* $Id$ */
/** @file
* Main - NetIfList, Linux implementation.
*/
/*
* Copyright (C) 2008 Sun Microsystems, Inc.
*
* 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.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#define LOG_GROUP LOG_GROUP_MAIN
#include <list>
#include <stdio.h>
#include <unistd.h>
#include "HostNetworkInterfaceImpl.h"
#include "netif.h"
{
if (sock >= 0)
{
char pBuffer[2048];
{
{
{
{
/* Pick up some garbage from stack. */
if (fp)
{
char szName[30];
"%08x%08x%08x%08x"
" %02x %02x %02x %02x %20s\n",
{
{
}
}
}
}
}
}
}
}
return VINF_SUCCESS;
}