/
githubmirror
/
nmap
Обзор
Документация
Войти
/
githubmirror
/
nmap
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
libdnet-stripped/src/eth-none.c
51 строка
580 B
dmiller
Upgrade libdnet to 1.18.0, plus Nmap's changes
31 мар 2025, 22:30
31 мар 2025, 22:30
210d6c0
Код
Авторство
О чём код?
/* * eth-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" 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); }