1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-12 02:39:03 +00:00
Files
nmap/libdnet-stripped/src/eth-none.c
2008-09-19 06:12:25 +00:00

52 lines
626 B
C

/*
* eth-none.c
*
* Copyright (c) 2000 Dug Song <dugsong@monkey.org>
*
* $Id: eth-none.c 547 2005-01-25 21:30:40Z dugsong $
*/
#include "config.h"
#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include "dnet.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);
}