/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2010,2011 Free Software Foundation, Inc.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRUB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef linux
#endif
#include <fcntl.h>
#include <unistd.h>
GRUB_MOD_LICENSE ("GPLv3+");
#ifdef linux
static int fd;
static grub_err_t
struct grub_net_buff *pack)
{
if (actual < 0)
return GRUB_ERR_NONE;
#else
static grub_err_t
{
#endif
}
#ifdef linux
static struct grub_net_buff *
{
if (!nb)
return NULL;
/* Reserve 2 bytes so that 2 + 14/18 bytes of ethernet header is divisible
by 4. So that IP header is aligned on 4 bytes. */
if (!nb)
{
return NULL;
}
if (actual < 0)
{
return NULL;
}
return nb;
#else
static struct grub_net_buff *
{
return 0;
#endif
}
{
.name = "emu",
.send = send_card_buffer,
};
{
.name = "emu0",
.mtu = 1500,
.default_address = {
},
.flags = 0
};
{
#ifdef linux
if (fd < 0)
return;
{
fd = -1;
return;
}
#endif
/* XXX Registering even though the functions above always return failure */
}
{
#ifdef linux
if (fd >= 0)
{
}
#else
#endif
}