comparison packages/net/tcpip/current/include/netinet/ip_ether.h @ 97:ced4577552cd ecos-sw-2000-06-06

Merge from eCos master repository on 2000-06-06-08:44:00-BST
author jlarmour
date Tue, 06 Jun 2000 08:39:36 +0000
parents
children e0c0827131d1
comparison
equal deleted inserted replaced
96:b15c60e34c84 97:ced4577552cd
1 //==========================================================================
2 //
3 // include/netinet/ip_ether.h
4 //
5 //
6 //
7 //==========================================================================
8 //####COPYRIGHTBEGIN####
9 //
10 // -------------------------------------------
11 // The contents of this file are subject to the Red Hat eCos Public License
12 // Version 1.1 (the "License"); you may not use this file except in
13 // compliance with the License. You may obtain a copy of the License at
14 // http://www.redhat.com/
15 //
16 // Software distributed under the License is distributed on an "AS IS"
17 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
18 // License for the specific language governing rights and limitations under
19 // the License.
20 //
21 // The Original Code is eCos - Embedded Configurable Operating System,
22 // released September 30, 1998.
23 //
24 // The Initial Developer of the Original Code is Red Hat.
25 // Portions created by Red Hat are
26 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
27 // All Rights Reserved.
28 // -------------------------------------------
29 //
30 //####COPYRIGHTEND####
31 //####BSDCOPYRIGHTBEGIN####
32 //
33 // -------------------------------------------
34 //
35 // Portions of this software may have been derived from OpenBSD or other sources,
36 // and are covered by the appropriate copyright disclaimers included herein.
37 //
38 // -------------------------------------------
39 //
40 //####BSDCOPYRIGHTEND####
41 //==========================================================================
42 //#####DESCRIPTIONBEGIN####
43 //
44 // Author(s): gthomas
45 // Contributors: gthomas
46 // Date: 2000-01-10
47 // Purpose:
48 // Description:
49 //
50 //
51 //####DESCRIPTIONEND####
52 //
53 //==========================================================================
54
55
56 /* $OpenBSD: ip_ether.h,v 1.2 1999/10/29 02:00:23 angelos Exp $ */
57
58 /*
59 * The author of this code is Angelos D. Keromytis (angelos@adk.gr)
60 *
61 * This code was written by Angelos D. Keromytis in October 1999.
62 *
63 * Copyright (C) 1999, by Angelos D. Keromytis.
64 *
65 * Permission to use, copy, and modify this software without fee
66 * is hereby granted, provided that this entire notice is included in
67 * all copies of any software which is or includes a copy or
68 * modification of this software.
69 * You may use this code under the GNU public license if you so wish. Please
70 * contribute changes back to the authors under this freer than GPL license
71 * so that we may further the use of strong encryption without limitations to
72 * all.
73 *
74 * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR
75 * IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY
76 * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE
77 * MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR
78 * PURPOSE.
79 */
80
81 #ifndef _NETINET_IP_ETHER_H_
82 #define _NETINET_IP_ETHER_H_
83
84 /*
85 * Ethernet-inside-IP processing.
86 */
87
88 struct etheripstat
89 {
90 u_int32_t etherip_hdrops; /* packet shorter than header shows */
91 u_int32_t etherip_qfull; /* bridge queue full, packet dropped */
92 u_int32_t etherip_noifdrops; /* no interface/bridge information */
93 u_int32_t etherip_pdrops; /* packet dropped due to policy */
94 u_int32_t etherip_adrops; /* all other drops */
95 u_int32_t etherip_ipackets; /* total input packets */
96 u_int32_t etherip_opackets; /* total output packets */
97 u_int64_t etherip_ibytes; /* input bytes */
98 u_int64_t etherip_obytes; /* output bytes */
99 };
100
101 /*
102 * Names for IP4 sysctl objects
103 */
104 #define ETHERIPCTL_ALLOW 1 /* accept incoming EtherIP packets */
105 #define ETHERIPCTL_MAXID 2
106
107 #define ETHERIPCTL_NAMES { \
108 { 0, 0 }, \
109 { "allow", CTLTYPE_INT }, \
110 }
111
112 #ifdef _KERNEL
113 int etherip_sysctl __P((int *, u_int, void *, size_t *, void *, size_t));
114
115 extern int etherip_allow;
116 extern struct etheripstat etheripstat;
117 #endif
118
119 #endif // _NETINET_IP_ETHER_H_