mirror of
https://github.com/nmap/nmap.git
synced 2025-12-21 15:09:02 +00:00
libdnet stripped and integrated, ARP ping scan starting to work pretty well
This commit is contained in:
58
libdnet-stripped/src/arp-none.c
Normal file
58
libdnet-stripped/src/arp-none.c
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* arp-none.c
|
||||
*
|
||||
* Copyright (c) 2000 Dug Song <dugsong@monkey.org>
|
||||
*
|
||||
* $Id: arp-none.c,v 1.5 2002/02/02 04:15:57 dugsong Exp $
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "dnet.h"
|
||||
|
||||
arp_t *
|
||||
arp_open(void)
|
||||
{
|
||||
errno = ENOSYS;
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
int
|
||||
arp_add(arp_t *a, const struct arp_entry *entry)
|
||||
{
|
||||
errno = ENOSYS;
|
||||
return (-1);
|
||||
}
|
||||
|
||||
int
|
||||
arp_delete(arp_t *a, const struct arp_entry *entry)
|
||||
{
|
||||
errno = ENOSYS;
|
||||
return (-1);
|
||||
}
|
||||
|
||||
int
|
||||
arp_get(arp_t *a, struct arp_entry *entry)
|
||||
{
|
||||
errno = ENOSYS;
|
||||
return (-1);
|
||||
}
|
||||
|
||||
int
|
||||
arp_loop(arp_t *a, arp_handler callback, void *arg)
|
||||
{
|
||||
errno = ENOSYS;
|
||||
return (-1);
|
||||
}
|
||||
|
||||
arp_t *
|
||||
arp_close(arp_t *a)
|
||||
{
|
||||
return (NULL);
|
||||
}
|
||||
Reference in New Issue
Block a user