mirror of
https://github.com/nmap/nmap.git
synced 2026-11-22 07:30:59 +00:00
Some checks are pending
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Waiting to run
58 lines
680 B
C
58 lines
680 B
C
/*
|
|
* tun-none.c
|
|
*
|
|
* Copyright (c) 2001 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"
|
|
|
|
tun_t *
|
|
tun_open(struct addr *src, struct addr *dst, int mtu)
|
|
{
|
|
errno = ENOSYS;
|
|
return (NULL);
|
|
}
|
|
|
|
const char *
|
|
tun_name(tun_t *tun)
|
|
{
|
|
errno = ENOSYS;
|
|
return (NULL);
|
|
}
|
|
|
|
int
|
|
tun_fileno(tun_t *tun)
|
|
{
|
|
errno = ENOSYS;
|
|
return (-1);
|
|
}
|
|
|
|
ssize_t
|
|
tun_send(tun_t *tun, const void *buf, size_t size)
|
|
{
|
|
errno = ENOSYS;
|
|
return (-1);
|
|
}
|
|
|
|
ssize_t
|
|
tun_recv(tun_t *tun, void *buf, size_t size)
|
|
{
|
|
errno = ENOSYS;
|
|
return (-1);
|
|
}
|
|
|
|
tun_t *
|
|
tun_close(tun_t *tun)
|
|
{
|
|
return (NULL);
|
|
}
|