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

Subversion Repositories or1k

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 745 simons
/*
2
 * lib/sit.c  This file contains the SIT HW-type support.
3
 *
4
 * Version:    $Id: sit.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
 *              Based on slip.c, modified by Frank Strauss, Aug 1996
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_HWSIT
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
#ifndef ARPHRD_SIT
37
#warning "No definition of ARPHRD_SIT in <net/if_arp.h>, using private value 776"
38
#define ARPHRD_SIT 776
39
#endif
40
 
41
struct hwtype sit_hwtype =
42
{
43
    "sit", NULL, /*"IPv6-in-IPv4", */ ARPHRD_SIT, 0,
44
    NULL, NULL, NULL, NULL
45
};
46
 
47
#endif                          /* HAVE_HWSIT */

powered by: WebSVN 2.1.0

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