/
githubmirror
/
net-tools
Обзор
Документация
Войти
/
githubmirror
/
net-tools
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/tunnel.c
45 строк
765 B
Bernd Eckenfels
passes -Wunused-parameter
12 май 2026, 04:34
12 май 2026, 04:34
e1e5bcc
Код
Авторство
О чём код?
/* * Tunnel.c, Alan Cox 1995. * */ #include "config.h" #if HAVE_HWTUNNEL #include <sys/types.h> #include <sys/socket.h> #include <net/if_arp.h> #include <linux/if_ether.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <ctype.h> #include <string.h> #include <unistd.h> #include "net-support.h" #include "pathnames.h" extern struct hwtype ether_hwtype; static const char *pr_tunnel(const char *ptr) { (void)ptr; /* unused */ return (""); } static int in_tunnel(char *bufp, struct sockaddr_storage *sasp) { (void)bufp; (void)sasp; /*unused */ return (-1); } struct hwtype tunnel_hwtype = { "tunnel", NULL, /*"IPIP Tunnel", */ ARPHRD_TUNNEL, 0, pr_tunnel, in_tunnel, NULL, 0 }; #endif /* HAVE_HWTUNNEL */