2 * This file is automatically generated from kern/variables.src ()
4 * Do not change this file
8 #include <netinet/in.h>
9 #include <kern/amiga_includes.h>
10 #include <kern/amiga_config.h>
11 #include <sys/socket.h>
13 /* Variables related to Internet Message Control Protocol. */
15 "E=ERROR,S=SHORTOLD,I=ICMPOLD,CO=CODE,T=TOOSHORT,CH=CHKSUM,L=LENGTH," \
18 /* Variables related to Internet Protocol. */
20 "T=TOTAL,CH=CHKSUM,TOOSH=TOOSHORT,TOOSM=TOOSMALL,H=HEADER," \
21 "LE=LENGTH,FS=FRAGMENTS,FD=FDROP,FT=FTIMEOUT,FO=FORWARD,FW=FWDCANT," \
22 "RED=REDIRECTSENT,N=NOPROTO,D=DELIVER,LO=LOCALOUT,OD=ODROPPED," \
23 "REA=REASSEMBLED,FE=FED,OF=OFRAGMENTS,FC=FCANT"
25 /* Variables related to Transmission Control Protocol. */
27 "CA=CATTEM,A=ACCEPTS,CO=CONNECT,DR=DROPS,CD=CDROPS,CL=CLOSED," \
28 "SE=SEGSTIMED,RTT=RTTUPDATE,DE=DELACK,T=TIMEODROP,RE=REXMTT," \
29 "P=PERSIST,KAT=KATIMEO,KAP=KAPROBE,KAD=KADROPS,ST=STOTAL,SP=SPACK," \
30 "SB=SBYTE,SREP=SREPACK,SREB=SREBYTE,SA=SACKS,SWP=SWPROBE," \
31 "SU=SURGENT,SWU=SWUPDATE,SC=SCTRL,RTO=RTOTAL,RPA=RPACK,RB=RBYTE," \
32 "RC=RCHKSUM,ROF=ROFFSET,RPS=RPSHORT,RDUPP=RDUPPACK,RDUPB=RDUPBYTE," \
33 "RPDUPD=RPDUPDATA,RPDUPB=RPDUPBYTE,ROOP=ROOPACK,ROOB=ROOBYTE," \
34 "RPL=RPLATE,RBL=RBLATE,RAF=RAFTER,RWP=RWPROBE,RDUPA=RDUPACK," \
35 "RACKT=RACKTOOM,RACKP=RACKPACK,RACKB=RACKBYTE,RWU=RWUPDATE"
37 /* Variables related to User Datagram Protocol. */
39 "I=ITOTAL,H=HEADSHORT,C=CHKSUM,L=LENGTH,N=NOPORT,B=BCNOPORT," \
40 "F=FULLSOC,M=MISPCB,O=OTOTAL"
42 /* Returns a list of routing entries for specified protocol family. For the output format description, see @ref{Routing Format}. */
44 "ALL,UNIX,INET,IMPLINK,PUP,CHAOS,NS,ISO,ECMA,DATAKIT,CCITT,SNA,DECnet,DLI," \
45 "LAT,HYLINK,APPLETALK,ROUTE,LINK,XTP"
47 /* Memory buffer statistics. */
48 #define KW_MBUF_STAT \
49 "M=MBUFS,CL=CLUSTERS,CLF=CLFREE,MD=MDROPS,NW=NWAITED,ND=NDRAINED," \
52 /* Memory buffer configuration. */
53 #define KW_MBUF_CONF \
54 "I=INITIAL,CH=CHUNK,CL=CLCHUNK,MM=MAXMEM,CS=CLUSTERSIZE"
56 /* Logging system configuration. */
58 "COUNT,LEN,FILTERFILE"
60 /* GUI system configuration */
64 /* What to show in the panel */
66 "SPEED,RATE,UPTIME,BYTES,IFCONTROL,GUICONTROL"
68 /* Level 1 variables */
70 "WITH,IC=ICMP,ICH=ICMPHIST,IP,T=TCP,U=UDP,CONNECTIONS,HOSTNAME,ROUTES,"
71 "MBS=MBUF_STAT,MBTS=MBUF_TYPE_STATS,MBC=MBUF_CONF,LOG,GUI,SHOW,"
72 "TASKNAME,NTH=NTHBASE,DBSANA=DEBUGSANA,DBICMP=DEBUGICMP,"
73 "DBIP=DEBUGIP,GTW=GATEWAY,REDIR=IPSENDREDIRECTS,"
74 "USENS=USENAMESERVER,ULO=USELOOPBACK,TCPSND=TCP_SENDSPACE,"
75 "TCPRCV=TCP_RECVSPACE,CON=CONSOLENAME,LOGF=LOGFILENAME,OPENGUI,REFRESH";
77 /* extern declarations */
79 /* read_sets() is declared in amiga_config.h */
81 extern LONG
read_icmphist(struct CSource
*args
, UBYTE
**errstrp
, struct CSource
*res
);
85 LONG
getsockets(struct CSource
*args
, UBYTE
**errstrp
, struct CSource
*res
);
86 LONG
rexx_gethostname(struct CSource
*args
, UBYTE
**errstrp
, struct CSource
*res
); LONG
rexx_sethostname(struct CSource
*args
, UBYTE
**errstrp
, struct CSource
*res
);
87 LONG
getroutes(struct CSource
*args
, UBYTE
**errstrp
, struct CSource
*res
);
88 extern struct mbstat mbstat
;
89 extern LONG
mb_read_stats(struct CSource
*args
, UBYTE
**errstrp
, struct CSource
*res
);
90 extern struct mbconf mbconf
; int mb_check_conf(void *pt
, IPTR
new);
93 extern LONG gui_show
[];
94 extern STRPTR taskname
; int taskname_changed(void *pt
, IPTR
new);
95 extern LONG nthLibrary
;
96 extern LONG debug_sana
;
97 extern LONG icmpprintfs
;
98 extern LONG ipprintfs
;
99 extern LONG ipforwarding
;
100 extern LONG ipsendredirects
;
102 extern LONG useloopback
;
103 extern ULONG tcp_sendspace
;
104 extern ULONG tcp_recvspace
;
105 extern STRPTR consolename
; int logname_changed(void *pt
, IPTR
new);
106 extern STRPTR logfilename
;
107 extern LONG OpenGUIOnStartup
;
108 extern ULONG gui_refresh
;
110 /* Global variables */
111 STRPTR KW_Protocols
= KW_ROUTES
;
113 struct cfg_variable variables
[] = {
114 { VAR_FUNC
, VF_RW
, NULL
, NULL
, (notify_f
)read_sets
},
115 { VAR_LONG
, VF_TABLE
|VF_READ
, KW_ICMP
, &icmpstat
, NULL
},
116 { VAR_FUNC
, VF_READ
, NULL
, (notify_f
)read_icmphist
, NULL
},
117 { VAR_LONG
, VF_TABLE
|VF_READ
, KW_IP
, &ipstat
, NULL
},
118 { VAR_LONG
, VF_TABLE
|VF_READ
, KW_TCP
, &tcpstat
, NULL
},
119 { VAR_LONG
, VF_TABLE
|VF_READ
, KW_UDP
, &udpstat
, NULL
},
120 { VAR_FUNC
, VF_READ
, NULL
, (notify_f
)getsockets
, NULL
},
121 { VAR_FUNC
, VF_RW
, NULL
, (notify_f
)rexx_gethostname
, (notify_f
)rexx_sethostname
},
122 { VAR_FUNC
, VF_READ
, NULL
, (notify_f
)getroutes
, NULL
},
123 { VAR_LONG
, VF_TABLE
|VF_READ
, KW_MBUF_STAT
, &mbstat
, NULL
},
124 { VAR_FUNC
, VF_READ
, NULL
, (notify_f
)mb_read_stats
, NULL
},
125 { VAR_LONG
, VF_TABLE
|VF_RCONF
, KW_MBUF_CONF
, &mbconf
, mb_check_conf
},
126 { VAR_LONG
, VF_TABLE
|VF_RCONF
, KW_LOG
, &log_cnf
, NULL
},
127 { VAR_STRP
, VF_TABLE
|VF_RCONF
, KW_GUI
, &gui_cnf
, NULL
},
128 { VAR_ENUM
, VF_TABLE
|VF_RCONF
, KW_SHOW
, gui_show
, boolean_enum
},
129 { VAR_STRP
, VF_RCONF
, NULL
, &taskname
, taskname_changed
},
130 { VAR_LONG
, VF_RW
, NULL
, &nthLibrary
, NULL
},
131 { VAR_ENUM
, VF_RW
, NULL
, &debug_sana
, boolean_enum
},
132 { VAR_ENUM
, VF_RW
, NULL
, &icmpprintfs
, boolean_enum
},
133 { VAR_ENUM
, VF_RW
, NULL
, &ipprintfs
, boolean_enum
},
134 { VAR_ENUM
, VF_RW
, NULL
, &ipforwarding
, boolean_enum
},
135 { VAR_ENUM
, VF_RW
, NULL
, &ipsendredirects
, boolean_enum
},
136 { VAR_ENUM
, VF_RW
, NULL
, &usens
, (notify_f
)"NO,FIRST,SECOND" },
137 { VAR_ENUM
, VF_RW
, NULL
, &useloopback
, boolean_enum
},
138 { VAR_LONG
, VF_RW
, NULL
, (LONG
*)&tcp_sendspace
, NULL
},
139 { VAR_LONG
, VF_RW
, NULL
, (LONG
*)&tcp_recvspace
, NULL
},
140 { VAR_STRP
, VF_RW
, NULL
, &consolename
, logname_changed
},
141 { VAR_STRP
, VF_RW
, NULL
, &logfilename
, logname_changed
},
142 { VAR_ENUM
, VF_RCONF
, NULL
, &OpenGUIOnStartup
, boolean_enum
},
143 { VAR_LONG
, VF_RCONF
, NULL
, &gui_refresh
, NULL
}