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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [include/] [netinet/] [ip_ether.h] - Blame information for rev 565

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

Line No. Rev Author Line
1 27 unneback
//==========================================================================
2
//
3
//      include/netinet/ip_ether.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: ip_ether.h,v 1.2 1999/10/29 02:00:23 angelos Exp $ */
34
 
35
/*
36
 * The author of this code is Angelos D. Keromytis (angelos@adk.gr)
37
 *
38
 * This code was written by Angelos D. Keromytis in October 1999.
39
 *
40
 * Copyright (C) 1999, by Angelos D. Keromytis.
41
 *
42
 * Permission to use, copy, and modify this software without fee
43
 * is hereby granted, provided that this entire notice is included in
44
 * all copies of any software which is or includes a copy or
45
 * modification of this software.
46
 * You may use this code under the GNU public license if you so wish. Please
47
 * contribute changes back to the authors under this freer than GPL license
48
 * so that we may further the use of strong encryption without limitations to
49
 * all.
50
 *
51
 * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR
52
 * IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY
53
 * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE
54
 * MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR
55
 * PURPOSE.
56
 */
57
 
58
#ifndef _NETINET_IP_ETHER_H_
59
#define _NETINET_IP_ETHER_H_
60
 
61
/*
62
 * Ethernet-inside-IP processing.
63
 */
64
 
65
struct etheripstat
66
{
67
    u_int32_t   etherip_hdrops;         /* packet shorter than header shows */
68
    u_int32_t   etherip_qfull;          /* bridge queue full, packet dropped */
69
    u_int32_t   etherip_noifdrops;      /* no interface/bridge information */
70
    u_int32_t   etherip_pdrops;         /* packet dropped due to policy */
71
    u_int32_t   etherip_adrops;         /* all other drops */
72
    u_int32_t   etherip_ipackets;       /* total input packets */
73
    u_int32_t   etherip_opackets;       /* total output packets */
74
    u_int64_t   etherip_ibytes;         /* input bytes */
75
    u_int64_t   etherip_obytes;         /* output bytes */
76
};
77
 
78
/*
79
 * Names for IP4 sysctl objects
80
 */
81
#define ETHERIPCTL_ALLOW        1       /* accept incoming EtherIP packets */
82
#define ETHERIPCTL_MAXID        2
83
 
84
#define ETHERIPCTL_NAMES { \
85
        { 0, 0 }, \
86
        { "allow", CTLTYPE_INT }, \
87
}
88
 
89
#ifdef _KERNEL
90
int     etherip_sysctl __P((int *, u_int, void *, size_t *, void *, size_t));
91
 
92
extern int etherip_allow;
93
extern struct etheripstat etheripstat;
94
#endif
95
 
96
#endif // _NETINET_IP_ETHER_H_

powered by: WebSVN 2.1.0

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