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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [userland/] [route/] [lib/] [slip.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 745 simons
/*
2
 * lib/slip.c This file contains the SLIP HW-type support.
3
 *
4
 * Version:     $Id: slip.c,v 1.1 2002-03-17 19:58:53 simons Exp $
5
 *
6
 * Author:      Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
7
 *              Copyright 1993 MicroWalt Corporation
8
 *
9
 *              Modified by Alan Cox, May 94 to cover NET-3
10
 *
11
 *              This program is free software; you can redistribute it
12
 *              and/or  modify it under  the terms of  the GNU General
13
 *              Public  License as  published  by  the  Free  Software
14
 *              Foundation;  either  version 2 of the License, or  (at
15
 *              your option) any later version.
16
 */
17
#include "config.h"
18
 
19
#if HAVE_HWSLIP
20
 
21
#include <sys/types.h>
22
#include <sys/ioctl.h>
23
#include <sys/socket.h>
24
#include <net/if_arp.h>
25
#include <stdlib.h>
26
#include <stdio.h>
27
#include <ctype.h>
28
#include <errno.h>
29
#include <fcntl.h>
30
#include <string.h>
31
#include <termios.h>
32
#include <unistd.h>
33
#include "net-support.h"
34
#include "pathnames.h"
35
 
36
 
37
struct hwtype slip_hwtype =
38
{
39
    "slip", NULL, /*"Serial Line IP", */ ARPHRD_SLIP, 0,
40
    NULL, NULL, NULL, NULL
41
};
42
struct hwtype cslip_hwtype =
43
{
44
    "cslip", NULL, /*"VJ Serial Line IP", */ ARPHRD_CSLIP, 0,
45
    NULL, NULL, NULL, NULL
46
};
47
struct hwtype slip6_hwtype =
48
{
49
    "slip6", NULL, /*"6-bit Serial Line IP", */ ARPHRD_SLIP6, 0,
50
    NULL, NULL, NULL, NULL
51
};
52
struct hwtype cslip6_hwtype =
53
{
54
    "cslip6", NULL, /*"VJ 6-bit Serial Line IP", */ ARPHRD_CSLIP6, 0,
55
    NULL, NULL, NULL, NULL
56
};
57
struct hwtype adaptive_hwtype =
58
{
59
    "adaptive", NULL, /*"Adaptive Serial Line IP", */ ARPHRD_ADAPT, 0,
60
    NULL, NULL, NULL, NULL
61
};
62
#endif                          /* HAVE_HWSLIP */

powered by: WebSVN 2.1.0

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