1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-30 11:29:01 +00:00
Files
nmap/libdnet-stripped/src/route-none.c
dmiller 210d6c0847 Upgrade libdnet to 1.18.0, plus Nmap's changes
Nmap's changes have been moved from the NMAP_MODIFICATIONS file to the
Github repo at https://github.com/nmap/libdnet

The NMAP_MODIFICATIONS file instead will document only the changes made
to strip unused parts of the libdnet source prior to inclusion in Nmap.
2025-03-31 19:30:47 +00:00

59 lines
712 B
C

/*
* route-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 "dnet.h"
route_t *
route_open(void)
{
errno = ENOSYS;
return (NULL);
}
int
route_add(route_t *r, const struct route_entry *entry)
{
errno = ENOSYS;
return (-1);
}
int
route_delete(route_t *r, const struct route_entry *entry)
{
errno = ENOSYS;
return (-1);
}
int
route_get(route_t *r, struct route_entry *entry)
{
errno = ENOSYS;
return (-1);
}
int
route_loop(route_t *r, route_handler callback, void *arg)
{
errno = ENOSYS;
return (-1);
}
route_t *
route_close(route_t *r)
{
return (NULL);
}