1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
/*
* eth-none.c
*
* Copyright (c) 2000 Dug Song <dugsong@monkey.org>
*
* $Id$
*/
#include "config.h"
#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include "dumbnet.h"
eth_t *
eth_open(const char *device)
{
errno = ENOSYS;
return (NULL);
}
ssize_t
eth_send(eth_t *e, const void *buf, size_t len)
{
errno = ENOSYS;
return (-1);
}
eth_t *
eth_close(eth_t *e)
{
return (NULL);
}
int
eth_get(eth_t *e, eth_addr_t *ea)
{
errno = ENOSYS;
return (-1);
}
int
eth_set(eth_t *e, const eth_addr_t *ea)
{
errno = ENOSYS;
return (-1);
}
|