source: EcnlProtoTool/trunk/asp3_dcre/tinet/net/net_count.h@ 270

Last change on this file since 270 was 270, checked in by coas-nagasima, 7 years ago

mruby版ECNLプロトタイピング・ツールを追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr
File size: 17.7 KB
Line 
1/*
2 * TINET (TCP/IP Protocol Stack)
3 *
4 * Copyright (C) 2001-2009 by Dep. of Computer Science and Engineering
5 * Tomakomai National College of Technology, JAPAN
6 *
7 * 上記著作権者
8は,以下の (1)~(4) の条件か,Free Software Foundation
9 * によってå…
10¬è¡¨ã•ã‚Œã¦ã„ã‚‹ GNU General Public License の Version 2 に記
11 * 述されている条件を満たす場合に限り,本ソフトウェア(本ソフトウェア
12 * を改変したものを含む.以下同じ)を使用・複製・改変・再é…
13å¸ƒï¼ˆä»¥ä¸‹ï¼Œ
14 * 利用と呼ぶ)することを無償で許諾する.
15 * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
16 * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
17 * スコード中に含まれていること.
18 * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
19 * 用できる形で再é…
20å¸ƒã™ã‚‹å ´åˆã«ã¯ï¼Œå†é…
21å¸ƒã«ä¼´ã†ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆï¼ˆåˆ©ç”¨
22 * 者
23マニュアルなど)に,上記の著作権表示,この利用条件および下記
24 * の無保証規定を掲載すること.
25 * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
26 * 用できない形で再é…
27å¸ƒã™ã‚‹å ´åˆã«ã¯ï¼Œæ¬¡ã®æ¡ä»¶ã‚’満たすこと.
28 * (a) 再é…
29å¸ƒã«ä¼´ã†ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆï¼ˆåˆ©ç”¨è€…
30マニュアルなど)に,上記の著
31 * 作権表示,この利用条件および下記の無保証規定を掲載すること.
32 * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
33 * 害からも,上記著作権者
34およびTOPPERSプロジェクトをå…
35è²¬ã™ã‚‹ã“と.
36 *
37 * 本ソフトウェアは,無保証で提供されているものである.上記著作権者
38お
39 * よびTOPPERSプロジェクトは,本ソフトウェアに関して,その適用可能性も
40 * 含めて,いかなる保証も行わない.また,本ソフトウェアの利用により直
41 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない.
42 *
43 * @(#) $Id: net_count.h 270 2017-02-09 04:03:47Z coas-nagasima $
44 */
45
46/*
47 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1994, 1995
48 * The Regents of the University of California. All rights reserved.
49 *
50 * Redistribution and use in source and binary forms, with or without
51 * modification, are permitted provided that the following conditions
52 * are met:
53 * 1. Redistributions of source code must retain the above copyright
54 * notice, this list of conditions and the following disclaimer.
55 * 2. Redistributions in binary form must reproduce the above copyright
56 * notice, this list of conditions and the following disclaimer in the
57 * documentation and/or other materials provided with the distribution.
58 * 3. All advertising materials mentioning features or use of this software
59 * must display the following acknowledgement:
60 * This product includes software developed by the University of
61 * California, Berkeley and its contributors.
62 * 4. Neither the name of the University nor the names of its contributors
63 * may be used to endorse or promote products derived from this software
64 * without specific prior written permission.
65 *
66 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
67 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
68 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
69 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
70 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
71 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
72 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
73 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
74 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
75 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
76 * SUCH DAMAGE.
77 */
78
79#ifndef _NET_COUNT_H_
80#define _NET_COUNT_H_
81
82/*
83 * ネットワーク統計情
84報の計測
85 */
86
87#if NET_COUNT_ENABLE != 0
88
89#ifndef _MACRO_ONLY
90
91#ifdef _int64_
92typedef uint64_t T_NET_COUNT_VAL;
93#else
94typedef uint32_t T_NET_COUNT_VAL;
95#endif
96
97typedef struct t_net_count {
98 T_NET_COUNT_VAL in_octets; /* 受信オクテット数 */
99 T_NET_COUNT_VAL out_octets; /* 送信オクテット数 */
100 T_NET_COUNT_VAL in_packets; /* 受信バケット数 */
101 T_NET_COUNT_VAL out_packets; /* 送信バケット数 */
102 T_NET_COUNT_VAL in_err_packets; /* 受信エラーバケット数 */
103 T_NET_COUNT_VAL out_err_packets; /* 送信エラーバケット数 */
104 } T_NET_COUNT;
105
106#endif /* of #ifndef _MACRO_ONLY */
107
108#endif /* of #if NET_COUNT_ENABLE != 0 */
109
110#ifdef SUPPORT_PPP
111
112/* PPP */
113
114#if NET_COUNT_ENABLE & PROTO_FLG_PPP
115
116#define NET_COUNT_PPP(v,c) ((v)+=(c))
117
118#ifndef _MACRO_ONLY
119
120extern T_NET_COUNT net_count_ppp;
121extern T_NET_COUNT_VAL net_count_ppp_no_bufs; /* net_buf 割り当て失敗数 */
122
123#endif /* of #ifndef _MACRO_ONLY */
124
125#define NC_PPP_SIZE 7 /* カウンタ数 */
126
127#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_PPP */
128
129#define NET_COUNT_PPP(v,c)
130
131#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_PPP */
132
133/* PPP HDLC */
134
135#if NET_COUNT_ENABLE & PROTO_FLG_PPP_HDLC
136
137#define NET_COUNT_PPP_HDLC(v,c) ((v)+=(c))
138
139#ifndef _MACRO_ONLY
140
141extern T_NET_COUNT net_count_hdlc;
142
143#endif /* of #ifndef _MACRO_ONLY */
144
145#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_PPP_HDLC */
146
147#define NET_COUNT_PPP_HDLC(v,c)
148
149#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_PPP_HDLC */
150
151/* PPP LCP */
152
153#if NET_COUNT_ENABLE & PROTO_FLG_PPP_LCP
154
155#define NET_COUNT_PPP_LCP(v,c) ((v)+=(c))
156
157#ifndef _MACRO_ONLY
158
159extern T_NET_COUNT_VAL net_count_ppp_lcp_in_octets;
160extern T_NET_COUNT_VAL net_count_ppp_lcp_in_packets;
161
162#endif /* of #ifndef _MACRO_ONLY */
163
164#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_PPP_LCP */
165
166#define NET_COUNT_PPP_LCP(v,c)
167
168#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_PPP_LCP */
169
170/* PPP IPCP */
171
172#if NET_COUNT_ENABLE & PROTO_FLG_PPP_IPCP
173
174#define NET_COUNT_PPP_IPCP(v,c) ((v)+=(c))
175
176#ifndef _MACRO_ONLY
177
178extern T_NET_COUNT_VAL net_count_ppp_ipcp_in_octets;
179extern T_NET_COUNT_VAL net_count_ppp_ipcp_in_packets;
180
181#endif /* of #ifndef _MACRO_ONLY */
182
183#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_PPP_IPCP */
184
185#define NET_COUNT_PPP_IPCP(v,c)
186
187#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_PPP_IPCP */
188
189/* PPP CCP */
190
191#if NET_COUNT_ENABLE & PROTO_FLG_PPP_CCP
192
193#define NET_COUNT_PPP_CCP(v,c) ((v)+=(c))
194
195#ifndef _MACRO_ONLY
196
197extern T_NET_COUNT_VAL net_count_ppp_ccp_in_octets;
198extern T_NET_COUNT_VAL net_count_ppp_ccp_in_packets;
199
200#endif /* of #ifndef _MACRO_ONLY */
201
202#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_PPP_CCP */
203
204#define NET_COUNT_PPP_CCP(v,c)
205
206#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_PPP_CCP */
207
208/* PPP PAP */
209
210#if NET_COUNT_ENABLE & PROTO_FLG_PPP_PAP
211
212#define NET_COUNT_PPP_PAP(v,c) ((v)+=(c))
213
214#ifndef _MACRO_ONLY
215
216extern T_NET_COUNT_VAL net_count_ppp_upap_in_octets;
217extern T_NET_COUNT_VAL net_count_ppp_upap_in_packets;
218
219#endif /* of #ifndef _MACRO_ONLY */
220
221#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_PPP_PAP */
222
223#define NET_COUNT_PPP_PAP(v,c)
224
225#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_PPP_PAP */
226
227#endif /* of #ifdef SUPPORT_PPP */
228
229#ifdef SUPPORT_LOOP
230
231/* ループバック */
232
233#if NET_COUNT_ENABLE & PROTO_FLG_LOOP
234
235#define NET_COUNT_LOOP(v,c) ((v)+=(c))
236
237#ifndef _MACRO_ONLY
238
239extern T_NET_COUNT net_count_loop;
240
241#endif /* of #ifndef _MACRO_ONLY */
242
243#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_LOOP */
244
245#define NET_COUNT_LOOP(v,c)
246
247#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_LOOP */
248
249#endif /* of #ifdef SUPPORT_LOOP */
250
251#ifdef SUPPORT_ETHER
252
253/* Ethernet */
254
255#if NET_COUNT_ENABLE & PROTO_FLG_ETHER
256
257#define NET_COUNT_ETHER(v,c) ((v)+=(c))
258
259#ifndef _MACRO_ONLY
260
261extern T_NET_COUNT net_count_ether;
262
263#endif /* of #ifndef _MACRO_ONLY */
264
265#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_ETHER */
266
267#define NET_COUNT_ETHER(v,c)
268
269#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_ETHER */
270
271/* NIC (if_ed) */
272
273#if NET_COUNT_ENABLE & PROTO_FLG_ETHER_NIC
274
275#define NC_ETHER_NIC_RESETS 0 /* リセット数 */
276#define NC_ETHER_NIC_TXB_QOVRS 1 /* 送信セマフォ資源返却上限オーバー数*/
277#define NC_ETHER_NIC_TIMEOUTS 2 /* 送信タイムアウト数 */
278#define NC_ETHER_NIC_COLS 3 /* コリジョン数 */
279#define NC_ETHER_NIC_OUT_ERR_PACKETS 4 /* 送信エラーバケット数 */
280#define NC_ETHER_NIC_OUT_PACKETS 5 /* 送信バケット数 */
281#define NC_ETHER_NIC_OUT_OCTETS 6 /* 送信オクテット数 */
282#define NC_ETHER_NIC_RXB_QOVRS 7 /* 受信セマフォ資源返却上限オーバー数*/
283#define NC_ETHER_NIC_NO_BUFS 8 /* net_buf 割り当て失敗数 */
284#define NC_ETHER_NIC_IN_ERR_PACKETS 9 /* 受信エラーバケット数 */
285#define NC_ETHER_NIC_IN_PACKETS 10 /* 受信バケット数 */
286#define NC_ETHER_NIC_IN_OCTETS 11 /* 受信オクテット数 */
287#define NC_ETHER_NIC_SIZE 12 /* カウンタ数 */
288
289#define NET_COUNT_ETHER_NIC(v,c) ((v)+=(c))
290
291#ifndef _MACRO_ONLY
292
293extern T_NET_COUNT_VAL net_count_ether_nic[NC_ETHER_NIC_SIZE];
294
295#endif /* of #ifndef _MACRO_ONLY */
296
297#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_ETHER_NIC */
298
299#define NET_COUNT_ETHER_NIC(v,c)
300
301#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_ETHER_NIC */
302
303#endif /* of #ifdef SUPPORT_ETHER */
304
305/* ネットワークバッファ */
306
307#if NET_COUNT_ENABLE & PROTO_FLG_NET_BUF
308
309#define NET_COUNT_NET_BUF(v,c) ((v)+=(c))
310
311#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_NET_BUF */
312
313#define NET_COUNT_NET_BUF(v,c)
314
315#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_NET_BUF */
316
317#if defined(SUPPORT_INET4)
318
319/* ARP */
320
321#if NET_COUNT_ENABLE & PROTO_FLG_ARP
322
323#define NET_COUNT_ARP(v,c) ((v)+=(c))
324
325#ifndef _MACRO_ONLY
326
327extern T_NET_COUNT net_count_arp;
328
329#endif /* of #ifndef _MACRO_ONLY */
330
331#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_ARP */
332
333#define NET_COUNT_ARP(v,c)
334
335#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_ARP */
336
337/* IPv4 */
338
339#if NET_COUNT_ENABLE & PROTO_FLG_IP4
340
341#define NC_IP4_FRAG_OUT_FRAGS 0 /* 分割送信、フラグメント数 */
342#define NC_IP4_FRAG_OUT 1 /* 分割送信数 */
343#define NC_IP4_OUT_ERR_PACKETS 2 /* 送信エラーデータグラム数 */
344#define NC_IP4_OUT_PACKETS 3 /* 送信データグラム数 */
345#define NC_IP4_OUT_OCTETS 4 /* 送信オクテット数 */
346#define NC_IP4_FRAG_IN_TMOUT 5 /* 分割受信タイムアウト数 */
347#define NC_IP4_FRAG_IN_NO_BUF 6 /* 分割受信バッファり当て失敗数 */
348#define NC_IP4_FRAG_IN_DROP 7 /* 分割受信破棄数 */
349#define NC_IP4_FRAG_IN_OK 8 /* 分割受信再構成成功数 */
350#define NC_IP4_FRAG_IN_FRAGS 9 /* 分割受信フラグメント数 */
351#define NC_IP4_FRAG_IN 10 /* 分割受信数 */
352#define NC_IP4_OPTS 11 /* オプションå…
353¥åŠ›æ•° */
354#define NC_IP4_IN_ERR_PROTO 12 /* プロトコルエラー数 */
355#define NC_IP4_IN_ERR_ADDR 13 /* アドレスエラー数 */
356#define NC_IP4_IN_ERR_VER 14 /* バージョンエラー数 */
357#define NC_IP4_IN_ERR_SHORT 15 /* 長さエラー数 */
358#define NC_IP4_IN_ERR_CKSUM 16 /* チェックサムエラー数 */
359#define NC_IP4_IN_ERR_PACKETS 17 /* 受信エラーデータグラム数 */
360#define NC_IP4_IN_PACKETS 18 /* 受信データグラム数 */
361#define NC_IP4_IN_OCTETS 19 /* 受信オクテット数 */
362#define NC_IP4_SIZE 20 /* カウンタ数 */
363
364#define NET_COUNT_IP4(v,c) ((v)+=(c))
365
366#ifndef _MACRO_ONLY
367
368extern T_NET_COUNT_VAL net_count_ip4[NC_IP4_SIZE];
369
370#endif /* of #ifndef _MACRO_ONLY */
371
372#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_IP4 */
373
374#define NET_COUNT_IP4(v,c)
375
376#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_IP4 */
377
378/* ICMP4 */
379
380#if NET_COUNT_ENABLE & PROTO_FLG_ICMP4
381
382#define NET_COUNT_ICMP4(v,c) ((v)+=(c))
383
384#ifndef _MACRO_ONLY
385
386extern T_NET_COUNT net_count_icmp4;
387
388#endif /* of #ifndef _MACRO_ONLY */
389
390#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_ICMP4 */
391
392#define NET_COUNT_ICMP4(v,c)
393
394#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_ICMP4 */
395
396#endif /* of #if defined(SUPPORT_INET4) */
397
398#if defined(SUPPORT_INET6)
399
400/* IPv6 */
401
402#if NET_COUNT_ENABLE & PROTO_FLG_IP6
403
404#define NC_IP6_FRAG_OUT_FRAGS 0 /* 分割送信、フラグメント数 */
405#define NC_IP6_FRAG_OUT 1 /* 分割送信数 */
406#define NC_IP6_OUT_ERR_PACKETS 2 /* 送信エラーデータグラム数 */
407#define NC_IP6_OUT_PACKETS 3 /* 送信データグラム数 */
408#define NC_IP6_OUT_OCTETS 4 /* 送信オクテット数 */
409#define NC_IP6_FRAG_IN_TMOUT 5 /* 分割受信タイムアウト数 */
410#define NC_IP6_FRAG_IN_NO_BUF 6 /* 分割受信バッファり当て失敗数 */
411#define NC_IP6_FRAG_IN_DROP 7 /* 分割受信破棄数 */
412#define NC_IP6_FRAG_IN_OK 8 /* 分割受信再構成成功数 */
413#define NC_IP6_FRAG_IN_FRAGS 9 /* 分割受信フラグメント数 */
414#define NC_IP6_FRAG_IN 10 /* 分割受信数 */
415#define NC_IP6_IN_ERR_PROTO 11 /* プロトコルエラー数 */
416#define NC_IP6_IN_ERR_ADDR 12 /* アドレスエラー数 */
417#define NC_IP6_IN_ERR_VER 13 /* バージョンエラー数 */
418#define NC_IP6_IN_ERR_SHORT 14 /* 長さエラー数 */
419#define NC_IP6_IN_ERR_PACKETS 15 /* 受信エラーデータグラム数 */
420#define NC_IP6_IN_PACKETS 16 /* 受信データグラム数 */
421#define NC_IP6_IN_OCTETS 17 /* 受信オクテット数 */
422#define NC_IP6_SIZE 18 /* カウンタ数 */
423
424#define NET_COUNT_IP6(v,c) ((v)+=(c))
425
426#ifndef _MACRO_ONLY
427
428extern T_NET_COUNT_VAL net_count_ip6[NC_IP6_SIZE];
429
430#endif /* of #ifndef _MACRO_ONLY */
431
432#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_IP6 */
433
434#define NET_COUNT_IP6(v,c)
435
436#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_IP6 */
437
438#if NET_COUNT_ENABLE & PROTO_FLG_ICMP6
439
440#define NC_ICMP6_OUT_ERR_PACKETS 0 /* 送信エラー ICMP データ数 */
441#define NC_ICMP6_OUT_PACKETS 1 /* 送信 ICMP データ数 */
442#define NC_ICMP6_OUT_OCTETS 2 /* 送信 ICMP オクテット数 */
443#define NC_ICMP6_IN_ERR_CKSUM 3 /* 長さエラー数 */
444#define NC_ICMP6_IN_ERR_PACKETS 4 /* 受信エラー ICMP データ数 */
445#define NC_ICMP6_IN_PACKETS 5 /* 受信 ICMP データ数 */
446#define NC_ICMP6_IN_OCTETS 6 /* 受信 ICMP オクテット数 */
447#define NC_ICMP6_SIZE 7 /* カウンタ数 */
448
449#define NET_COUNT_ICMP6(v,c) ((v)+=(c))
450
451#ifndef _MACRO_ONLY
452
453extern T_NET_COUNT_VAL net_count_icmp6[NC_ICMP6_SIZE];
454
455#endif /* of #ifndef _MACRO_ONLY */
456
457#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_ICMP6 */
458
459#define NET_COUNT_ICMP6(v,c)
460
461#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_ICMP6 */
462
463#if NET_COUNT_ENABLE & PROTO_FLG_ND6
464
465#define NC_ND6_DAD_OUT_PACKETS 0 /* 重複アドレス検出送信数 */
466#define NC_ND6_NS_OUT_PACKETS 1 /* 近隣要請送信数 */
467#define NC_ND6_NS_IN_PACKETS 2 /* 近隣要請受信数 */
468#define NC_ND6_NA_OUT_PACKETS 3 /* 近隣通知送信数 */
469#define NC_ND6_NA_IN_PACKETS 4 /* 近隣通知受信数 */
470#define NC_ND6_RS_OUT_PACKETS 5 /* ルータ要請出力数 */
471#define NC_ND6_RA_IN_PACKETS 6 /* ルータ通知受信数 */
472#define NC_ND6_SIZE 7 /* カウンタ数 */
473
474#define NET_COUNT_ND6(v,c) ((v)+=(c))
475
476#ifndef _MACRO_ONLY
477
478extern T_NET_COUNT_VAL net_count_nd6[NC_ND6_SIZE];
479
480#endif /* of #ifndef _MACRO_ONLY */
481
482#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_ND6 */
483
484#define NET_COUNT_ND6(v,c)
485
486#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_ND6 */
487
488#endif /* of #if defined(SUPPORT_INET6) */
489
490#ifdef SUPPORT_TCP
491
492/* TCP */
493
494#if NET_COUNT_ENABLE & PROTO_FLG_TCP
495
496#define NC_TCP_CONNECTS 0 /* 能動オープン数 */
497#define NC_TCP_ACCEPTS 1 /* 受動オープン数 */
498#define NC_TCP_RTT_UPDATES 2 /* RTT 更新数 */
499#define NC_TCP_SEND_RSTS 3 /* 送信、RST 数 */
500#define NC_TCP_SEND_ACKS 4 /* 送信、ACK 数 */
501#define NC_TCP_SEND_URG_SEGS 5 /* 送信、緊急セグメント数 */
502#define NC_TCP_SEND_DATA_SEGS 6 /* 送信データセグメント数 */
503#define NC_TCP_SEND_REXMIT_SEGS 7 /* 再送信セグメント数 */
504#define NC_TCP_SEND_SEGS 8 /* 送信セグメント数 */
505#define NC_TCP_SEND_CNTL_SEGS 9 /* 送信制御セグメント数 */
506#define NC_TCP_SEND_DATA_OCTETS 10 /* 送信データオクテット数 */
507#define NC_TCP_FREE_RCV_QUEUE 11 /* 受信キュー解放数 */
508#define NC_TCP_RECV_DUP_SEGS 12 /* 受信、多重数 */
509#define NC_TCP_RECV_DROP_SEGS 13 /* 受信、破棄数 */
510#define NC_TCP_RECV_RSTS 14 /* 受信、RST 数 */
511#define NC_TCP_RECV_DUP_ACKS 15 /* 受信、多重 ACK 数 */
512#define NC_TCP_RECV_ACKS 16 /* 受信、ACK 数 */
513#define NC_TCP_RECV_BAD_CKSUMS 17 /* 受信、チェックサム不正数 */
514#define NC_TCP_RECV_BAD_HEADERS 18 /* 受信、ヘッダ不正数 */
515#define NC_TCP_RECV_URG_SEGS 19 /* 受信、緊急セグメント数 */
516#define NC_TCP_RECV_DATA_SEGS 20 /* 受信データセグメント数 */
517#define NC_TCP_RECV_SEGS 21 /* 受信セグメント数 */
518#define NC_TCP_RECV_DATA_OCTETS 22 /* 受信データオクテット数 */
519#define NC_TCP_RECV_OCTETS 23 /* 受信オクテット数 */
520#define NC_TCP_SIZE 24 /* カウンタ数 */
521
522#define NET_COUNT_TCP(v,c) ((v)+=(c))
523
524#ifndef _MACRO_ONLY
525
526extern T_NET_COUNT_VAL net_count_tcp[NC_TCP_SIZE];
527
528#endif /* of #ifndef _MACRO_ONLY */
529
530#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_TCP */
531
532#define NET_COUNT_TCP(v,c)
533
534#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_TCP */
535
536#endif /* of #ifdef SUPPORT_TCP */
537
538#ifdef SUPPORT_UDP
539
540/* UDP */
541
542#if NET_COUNT_ENABLE & PROTO_FLG_UDP
543
544#define NET_COUNT_UDP(v,c) ((v)+=(c))
545
546#ifndef _MACRO_ONLY
547
548extern T_NET_COUNT net_count_udp;
549
550#endif /* of #ifndef _MACRO_ONLY */
551
552#else /* of #if NET_COUNT_ENABLE & PROTO_FLG_UDP */
553
554#define NET_COUNT_UDP(v,c)
555
556#endif /* of #if NET_COUNT_ENABLE & PROTO_FLG_UDP */
557
558#endif /* of #ifdef SUPPORT_UDP */
559
560#ifdef SUPPORT_MIB
561
562/*
563 * SNMP の 管理情
564報ベース (MIB)
565 */
566
567#define NET_COUNT_MIB(v, c) ((v)+=(c))
568
569#else /* of #ifdef SUPPORT_MIB */
570
571#define NET_COUNT_MIB(v, c)
572
573#endif /* of #ifdef SUPPORT_MIB */
574
575#endif /* of #ifndef _NET_COUNT_H_ */
Note: See TracBrowser for help on using the repository browser.