~ubuntu-branches/ubuntu/edgy/net-tools/edgy

« back to all changes in this revision

Viewing changes to lib/tunnel.c

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Eckenfels
  • Date: 2001-11-24 06:26:37 UTC
  • Revision ID: james.westby@ubuntu.com-20011124062637-1y96kzx03e8dbi55
Tags: upstream-1.60
ImportĀ upstreamĀ versionĀ 1.60

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *    Tunnel.c, Alan Cox 1995.
 
3
 *
 
4
 */
 
5
 
 
6
#include "config.h"
 
7
 
 
8
#if HAVE_HWTUNNEL
 
9
#include <sys/types.h>
 
10
#include <sys/socket.h>
 
11
#include <net/if_arp.h>
 
12
#include <linux/if_ether.h>
 
13
#include <stdlib.h>
 
14
#include <stdio.h>
 
15
#include <errno.h>
 
16
#include <ctype.h>
 
17
#include <string.h>
 
18
#include <unistd.h>
 
19
#include "net-support.h"
 
20
#include "pathnames.h"
 
21
 
 
22
extern struct hwtype ether_hwtype;
 
23
 
 
24
static char *pr_tunnel(unsigned char *ptr)
 
25
{
 
26
    return ("");
 
27
}
 
28
 
 
29
 
 
30
static int in_tunnel(char *bufp, struct sockaddr *sap)
 
31
{
 
32
    return (-1);
 
33
}
 
34
 
 
35
 
 
36
struct hwtype tunnel_hwtype =
 
37
{
 
38
    "tunnel", NULL, /*"IPIP Tunnel", */ ARPHRD_TUNNEL, 0,
 
39
    pr_tunnel, in_tunnel, NULL, 0
 
40
};
 
41
 
 
42
 
 
43
#endif                          /* HAVE_HWTUNNEL */