OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [userland/] [route/] [lib/] [tunnel.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 745 simons
/*
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 char *pr_stunnel(struct sockaddr *sap)
31
{
32
    return ("");
33
}
34
 
35
 
36
static int in_tunnel(char *bufp, struct sockaddr *sap)
37
{
38
    return (-1);
39
}
40
 
41
 
42
struct hwtype tunnel_hwtype =
43
{
44
    "tunnel", NULL, /*"IPIP Tunnel", */ ARPHRD_TUNNEL, 0,
45
    pr_tunnel, pr_stunnel, in_tunnel, NULL
46
};
47
 
48
 
49
#endif                          /* HAVE_HWTUNNEL */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.