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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [include/] [netinet/] [ip_frag.h] - Blame information for rev 1254

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

Line No. Rev Author Line
1 1254 phoenix
//==========================================================================
2
//
3
//      include/netinet/ip_fil.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_frag.h,v 1.9 1999/12/15 05:20:22 kjell Exp $ */
34
/*
35
 * Copyright (C) 1993-1998 by Darren Reed.
36
 *
37
 * Redistribution and use in source and binary forms are permitted
38
 * provided that this notice is preserved and due credit is given
39
 * to the original author and the contributors.
40
 *
41
 * @(#)ip_frag.h        1.5 3/24/96
42
 */
43
 
44
#ifndef _NETINET_IP_FRAG_H__
45
#define _NETINET_IP_FRAG_H__
46
 
47
#define IPFT_SIZE       257
48
 
49
typedef struct  ipfr    {
50
        struct  ipfr    *ipfr_next, *ipfr_prev;
51
        void    *ipfr_data;
52
        struct  in_addr ipfr_src;
53
        struct  in_addr ipfr_dst;
54
        u_short ipfr_id;
55
        u_char  ipfr_p;
56
        u_char  ipfr_tos;
57
        u_short ipfr_off;
58
        u_short ipfr_ttl;
59
        frentry_t *ipfr_rule;
60
} ipfr_t;
61
 
62
 
63
typedef struct  ipfrstat {
64
        u_long  ifs_exists;     /* add & already exists */
65
        u_long  ifs_nomem;
66
        u_long  ifs_new;
67
        u_long  ifs_hits;
68
        u_long  ifs_expire;
69
        u_long  ifs_inuse;
70
        struct  ipfr    **ifs_table;
71
        struct  ipfr    **ifs_nattab;
72
} ipfrstat_t;
73
 
74
#define IPFR_CMPSZ      (4 + 4 + 2 + 1 + 1)
75
 
76
extern  int     fr_ipfrttl;
77
extern  ipfrstat_t      *ipfr_fragstats __P((void));
78
extern  int     ipfr_newfrag __P((ip_t *, fr_info_t *, u_int));
79
extern  int     ipfr_nat_newfrag __P((ip_t *, fr_info_t *, u_int, struct nat *));
80
extern  nat_t   *ipfr_nat_knownfrag __P((ip_t *, fr_info_t *));
81
extern  frentry_t *ipfr_knownfrag __P((ip_t *, fr_info_t *));
82
extern  void    ipfr_forget __P((void *));
83
extern  void    ipfr_unload __P((void));
84
 
85
#if     (BSD >= 199306) || SOLARIS || defined(__sgi)
86
# if defined(SOLARIS2) && (SOLARIS2 < 7)
87
extern  void    ipfr_slowtimer __P((void));
88
# else
89
extern  void    ipfr_slowtimer __P((void *));
90
# endif
91
#else
92
extern  int     ipfr_slowtimer __P((void));
93
#endif
94
 
95
#endif  /* _NETINET_IP_FIL_H__ */

powered by: WebSVN 2.1.0

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