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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [include/] [net/] [if_tun.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1254 phoenix
//==========================================================================
2
//
3
//      include/net/if_tun.h
4
//
5
//      
6
//
7
//==========================================================================
8
//####BSDCOPYRIGHTBEGIN####
9
//
10
// -------------------------------------------
11
//
12
// Portions of this software may have been derived from OpenBSD or other sources,
13
// and are covered by the appropriate copyright disclaimers included herein.
14
//
15
// -------------------------------------------
16
//
17
//####BSDCOPYRIGHTEND####
18
//==========================================================================
19
//#####DESCRIPTIONBEGIN####
20
//
21
// Author(s):    gthomas
22
// Contributors: gthomas
23
// Date:         2000-01-10
24
// Purpose:      
25
// Description:  
26
//              
27
//
28
//####DESCRIPTIONEND####
29
//
30
//==========================================================================
31
 
32
 
33
/*      $OpenBSD: if_tun.h,v 1.8 1998/08/02 07:17:44 brian Exp $        */
34
 
35
/*
36
 * Copyright (c) 1988, Julian Onions <jpo@cs.nott.ac.uk>
37
 * Nottingham University 1987.
38
 *
39
 * This source may be freely distributed, however I would be interested
40
 * in any changes that are made.
41
 *
42
 * This driver takes packets off the IP i/f and hands them up to a
43
 * user process to have it's wicked way with. This driver has it's
44
 * roots in a similar driver written by Phil Cockcroft (formerly) at
45
 * UCL. This driver is based much more on read/write/select mode of
46
 * operation though.
47
 *
48
 * from: @Header: if_tnreg.h,v 1.1.2.1 1992/07/16 22:39:16 friedl Exp
49
 */
50
 
51
#ifndef _NET_IF_TUN_H_
52
#define _NET_IF_TUN_H_
53
 
54
#include <sys/ioccom.h>
55
 
56
#define TUN_OPEN        0x0001
57
#define TUN_INITED      0x0002
58
#define TUN_RCOLL       0x0004
59
#define TUN_IASET       0x0008
60
#define TUN_DSTADDR     0x0010
61
#define TUN_RWAIT       0x0040
62
#define TUN_ASYNC       0x0080
63
#define TUN_NBIO        0x0100
64
#define TUN_BRDADDR     0x0200
65
#define TUN_STAYUP      0x0400
66
 
67
#define TUN_READY       (TUN_OPEN | TUN_INITED | TUN_IASET)
68
 
69
/* Maximum packet size */
70
#define TUNMTU          3000
71
 
72
/* Maximum receive packet size (hard limit) */
73
#define TUNMRU          16384
74
 
75
/* ioctl's for get/set debug */
76
#define TUNSDEBUG       _IOW('t', 89, int)
77
#define TUNGDEBUG       _IOR('t', 90, int)
78
 
79
/* iface info */
80
struct tuninfo {
81
        u_int   mtu;
82
        u_short type;
83
        u_short flags;
84
        u_int   baudrate;
85
};
86
#define TUNSIFINFO      _IOW('t', 91, struct tuninfo)
87
#define TUNGIFINFO      _IOR('t', 92, struct tuninfo)
88
 
89
#endif /* !_NET_IF_TUN_H_ */

powered by: WebSVN 2.1.0

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