00001
00002
00003
00004
00005
00006
00007
00008 #ifndef _IF_H_
00009 #define _IF_H_
00010
00011 #define IF_COMPRESS 0x01
00012 #define IF_NOCOMPRESS 0x02
00013 #define IF_AUTOCOMP 0x04
00014 #define IF_NOCIDCOMP 0x08
00015
00016 #define IF_MTU 1500
00017 #define IF_MRU 1500
00018 #define IF_COMP IF_AUTOCOMP
00019
00020 #if 0
00021
00022
00023
00024
00025 #ifdef USE_PPP
00026 #define IF_MAXLINKHDR 48
00027 #else
00028 #define IF_MAXLINKHDR 40
00029 #endif
00030 #else
00031
00032 #define IF_MAXLINKHDR (2 + 14 + 40)
00033 #endif
00034
00035 extern int if_queued;
00036
00037 extern struct mbuf if_fastq;
00038 extern struct mbuf if_batchq;
00039 extern struct mbuf *next_m;
00040
00041 #define ifs_init(ifm) ((ifm)->ifs_next = (ifm)->ifs_prev = (ifm))
00042
00043 #ifdef LOG_ENABLED
00044
00045 struct slirp_ifstats {
00046 u_int out_pkts;
00047 u_int out_bytes;
00048 u_int out_errpkts;
00049 u_int out_errbytes;
00050 u_int in_pkts;
00051 u_int in_bytes;
00052 u_int in_errpkts;
00053 u_int in_errbytes;
00054
00055 u_int bytes_saved;
00056
00057
00058
00059 u_int in_mbad;
00060 };
00061 #endif
00062
00063 #endif