/
githubmirror
/
nmap
Обзор
Документация
Войти
/
githubmirror
/
nmap
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
libdnet-stripped/src/tun-none.c
62 строки
735 B
dmiller
Windows build fixes for libdnet-stripped
11 апр 2025, 19:39
11 апр 2025, 19:39
21e5cc6
Код
Авторство
О чём код?
/* * tun-none.c * * Copyright (c) 2001 Dug Song <dugsong@monkey.org> * * $Id$ */ #ifdef _WIN32 #include "dnet_winconfig.h" #else #include "config.h" #endif #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); }