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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [bsd_tcpip/] [v2_0/] [include/] [netinet/] [ip_flow.h] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
//==========================================================================
2
//
3
//      include/netinet/ip_flow.h
4
//
5
//==========================================================================
6
//####BSDCOPYRIGHTBEGIN####
7
//
8
// -------------------------------------------
9
//
10
// Portions of this software may have been derived from OpenBSD, 
11
// FreeBSD or other sources, and are covered by the appropriate
12
// copyright disclaimers included herein.
13
//
14
// Portions created by Red Hat are
15
// Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
16
//
17
// -------------------------------------------
18
//
19
//####BSDCOPYRIGHTEND####
20
//==========================================================================
21
 
22
/*-
23
 * Copyright (c) 1998 The NetBSD Foundation, Inc.
24
 * All rights reserved.
25
 *
26
 * This code is derived from software contributed to The NetBSD Foundation
27
 * by the 3am Software Foundry ("3am").  It was developed by Matt Thomas.
28
 *
29
 * Redistribution and use in source and binary forms, with or without
30
 * modification, are permitted provided that the following conditions
31
 * are met:
32
 * 1. Redistributions of source code must retain the above copyright
33
 *    notice, this list of conditions and the following disclaimer.
34
 * 2. Redistributions in binary form must reproduce the above copyright
35
 *    notice, this list of conditions and the following disclaimer in the
36
 *    documentation and/or other materials provided with the distribution.
37
 * 3. All advertising materials mentioning features or use of this software
38
 *    must display the following acknowledgement:
39
 *      This product includes software developed by the NetBSD
40
 *      Foundation, Inc. and its contributors.
41
 * 4. Neither the name of The NetBSD Foundation nor the names of its
42
 *    contributors may be used to endorse or promote products derived
43
 *    from this software without specific prior written permission.
44
 *
45
 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
46
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
47
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
48
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
49
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
50
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
51
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
52
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
53
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
54
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
55
 * POSSIBILITY OF SUCH DAMAGE.
56
 *
57
 * $FreeBSD: src/sys/netinet/ip_flow.h,v 1.2 1999/08/28 00:49:22 peter Exp $
58
 */
59
 
60
#ifndef _NETINET_IP_FLOW_H
61
#define _NETINET_IP_FLOW_H
62
 
63
struct ipflow {
64
        LIST_ENTRY(ipflow) ipf_next;    /* next ipflow in bucket */
65
        struct in_addr ipf_dst;         /* destination address */
66
        struct in_addr ipf_src;         /* source address */
67
 
68
        u_int8_t ipf_tos;               /* type-of-service */
69
        struct route ipf_ro;            /* associated route entry */
70
        u_long ipf_uses;                /* number of uses in this period */
71
 
72
        int ipf_timer;                  /* remaining lifetime of this entry */
73
        u_long ipf_dropped;             /* ENOBUFS returned by if_output */
74
        u_long ipf_errors;              /* other errors returned by if_output */
75
        u_long ipf_last_uses;           /* number of uses in last period */
76
};
77
 
78
#endif

powered by: WebSVN 2.1.0

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