Annotation of embedaddon/mpd/src/ccp_pred1.h, revision 1.1
1.1 ! misho 1:
! 2: /*
! 3: * ccp_pred1.h
! 4: *
! 5: * Rewritten by Alexander Motin <mav@FreeBSD.org>
! 6: * Written by Archie Cobbs <archie@freebsd.org>
! 7: * Copyright (c) 1995-1999 Whistle Communications, Inc. All rights reserved.
! 8: * See ``COPYRIGHT.whistle''
! 9: */
! 10:
! 11: #ifndef _PRED_H_
! 12: #define _PRED_H_
! 13:
! 14: #include "defs.h"
! 15: #include "mbuf.h"
! 16: #include "comp.h"
! 17:
! 18: #ifdef USE_NG_PRED1
! 19: #include <netgraph/ng_pred1.h>
! 20: #endif
! 21:
! 22: /*
! 23: * DEFINITIONS
! 24: */
! 25:
! 26: #define PRED1_TABLE_SIZE 0x10000
! 27:
! 28: #ifndef USE_NG_PRED1
! 29: struct pred1_stats {
! 30: uint64_t FramesPlain;
! 31: uint64_t FramesComp;
! 32: uint64_t FramesUncomp;
! 33: uint64_t InOctets;
! 34: uint64_t OutOctets;
! 35: uint64_t Errors;
! 36: };
! 37: typedef struct pred1_stats *Pred1Stats;
! 38: #endif
! 39:
! 40: struct pred1info
! 41: {
! 42: #ifndef USE_NG_PRED1
! 43: u_short iHash;
! 44: u_short oHash;
! 45: u_char *InputGuessTable;
! 46: u_char *OutputGuessTable;
! 47: struct pred1_stats recv_stats;
! 48: struct pred1_stats xmit_stats;
! 49: #endif
! 50: };
! 51: typedef struct pred1info *Pred1Info;
! 52:
! 53: /*
! 54: * VARIABLES
! 55: */
! 56:
! 57: extern const struct comptype gCompPred1Info;
! 58:
! 59: #endif
! 60:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>