File: tunnel.c

package info (click to toggle)
net-tools 1.60-17
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,432 kB
  • ctags: 1,149
  • sloc: ansic: 13,450; makefile: 305; sh: 102
file content (43 lines) | stat: -rw-r--r-- 685 bytes parent folder | download | duplicates (15)
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
/*
 *    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 int in_tunnel(char *bufp, struct sockaddr *sap)
{
    return (-1);
}


struct hwtype tunnel_hwtype =
{
    "tunnel", NULL, /*"IPIP Tunnel", */ ARPHRD_TUNNEL, 0,
    pr_tunnel, in_tunnel, NULL, 0
};


#endif				/* HAVE_HWTUNNEL */