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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [include/] [netinet6/] [icmpv6_var.h] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
//==========================================================================
2
//
3
//      include/netinet6_icmpv6_var.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
/*
34
%%% copyright-nrl-95
35
This software is Copyright 1995-1998 by Randall Atkinson, Ronald Lee,
36
Daniel McDonald, Bao Phan, and Chris Winters. All Rights Reserved. All
37
rights under this copyright have been assigned to the US Naval Research
38
Laboratory (NRL). The NRL Copyright Notice and License Agreement Version
39
1.1 (January 17, 1995) applies to this software.
40
You should have received a copy of the license with this software. If you
41
didn't get a copy, you may request one from <license@ipv6.nrl.navy.mil>.
42
 
43
*/
44
 
45
#ifndef _NETINET6_ICMPV6_VAR_H
46
#define _NETINET6_ICMPV6_VAR_H 1
47
 
48
#if defined(_BSDI_VERSION) && _BSDI_VERSION >= 199802
49
#define _ICMPV6STAT_TYPE u_quad_t
50
#else /* defined(_BSDI_VERSION) && _BSDI_VERSION >= 199802 */
51
#define _ICMPV6STAT_TYPE u_long
52
#endif /* defined(_BSDI_VERSION) && _BSDI_VERSION >= 199802 */
53
 
54
struct icmpv6stat
55
{
56
  _ICMPV6STAT_TYPE icps_error;
57
  _ICMPV6STAT_TYPE icps_tooshort;
58
  _ICMPV6STAT_TYPE icps_checksum;
59
  _ICMPV6STAT_TYPE icps_outhist[ICMPV6_MAXTYPE+1];
60
  _ICMPV6STAT_TYPE icps_badlen;
61
  _ICMPV6STAT_TYPE icps_badcode;
62
  _ICMPV6STAT_TYPE icps_reflect;    /* Number of in-kernel responses */
63
  _ICMPV6STAT_TYPE icps_inhist[ICMPV6_MAXTYPE+1];
64
};
65
 
66
/*
67
 * Names for ICMPV6 sysctl objects
68
 */
69
#define ICMPV6CTL_STATS         1       /* statistics */
70
#define ICMPV6CTL_MAXID         2
71
 
72
#define ICMPV6CTL_NAMES { \
73
        { 0, 0 }, \
74
        { "stats", CTLTYPE_STRUCT }, \
75
}
76
 
77
#define ICMPV6CTL_VARS { \
78
        0, \
79
        0, \
80
}
81
 
82
#if defined(_KERNEL) || defined(KERNEL)
83
struct  icmpv6stat icmpv6stat;
84
#endif /* defined(_KERNEL) || defined(KERNEL) */
85
#endif /* _NETINET6_ICMPV6_VAR_H */

powered by: WebSVN 2.1.0

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