tunnel.c

来自「Linux下网络相关工具源代码。」· C语言 代码 · 共 50 行

C
50
字号
/* *    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 char *pr_tunnel(unsigned char *ptr){    return ("");}static char *pr_stunnel(struct sockaddr *sap){    return ("");}static int in_tunnel(char *bufp, struct sockaddr *sap){    return (-1);}struct hwtype tunnel_hwtype ={    "tunnel", NULL, /*"IPIP Tunnel", */ ARPHRD_TUNNEL, 0,    pr_tunnel, pr_stunnel, in_tunnel, NULL};#endif				/* HAVE_HWTUNNEL */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?