blob: 2e8cf4b9e1369bb27ed32b87f022118a01144464 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*
* 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 */
|