資源簡介
Linux下實現流量監測的源代碼,適合初學者使用。
代碼片段和文件信息
#include?“bandwidthd.h“
#ifdef?HAVE_LIBPQ
#include?
#endif
//?We?must?call?regular?exit?to?write?out?profile?data?but?child?forks?are?supposed?to?usually
//?call?_exit?
#ifdef?PROFILE
#define?_exit(x)?exit(x)
#endif
/*
#ifdef?DEBUG
#define?fork()?(0)
#endif
*/
//?****************************************************************************************
//?**?Global?Variables
//?****************************************************************************************
static?pcap_t?*pd;??//Descriptor?of?an?open?capture?instance
unsigned?int?GraphIntervalCount?=?0;
unsigned?int?IpCount?=?0;
unsigned?int?SubnetCount?=?0;
time_t?IntervalStart;
int?RotateLogs?=?FALSE;
????
struct?SubnetData?SubnetTable[SUBNET_NUM];?//100
struct?IPData?IpTable[IP_NUM];?//4000
int?Datalink;
int?IP_Offset;
struct?IPDataStore?*IPDataStore?=?NULL;??//鏈表結構
extern?int?bdconfig_parse(void);
extern?FILE?*bdconfig_in;
struct?config?config;
pid_t?workerchildpids[NR_WORKER_CHILDS];
void?signal_handl
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..AD...?????????0??2006-07-06?16:12??bd-2.0.1
?????文件??????27846??2005-01-10?06:36??bd-2.0.1\config.sub
?????文件????????772??2005-01-12?05:05??bd-2.0.1\INSTALL.Windows
?????文件???????3754??2005-01-12?05:15??bd-2.0.1\configure.in
?????文件???????1428??2005-01-08?03:35??bd-2.0.1\schema.postgresql
?????文件??????37242??2005-01-12?06:00??bd-2.0.1\conf.tab.c
?????文件????????658??2005-01-07?22:23??bd-2.0.1\TODO
?????文件?????179489??2005-01-12?05:59??bd-2.0.1\configure
?????文件??????34356??2005-05-08?10:17??bd-2.0.1\graph.c
?????文件????????612??2005-01-12?05:05??bd-2.0.1\INSTALL.Unix
?????文件???????1028??2005-01-02?17:22??bd-2.0.1\conf.l
?????文件???????3161??2005-01-10?06:36??bd-2.0.1\conf.y
?????文件???????4663??2005-01-12?05:59??bd-2.0.1\config.h.in
?????文件??????43651??2005-01-12?06:00??bd-2.0.1\conf.l.c
?????文件??????39027??2005-01-10?06:36??bd-2.0.1\config.guess
?????文件???????2561??2005-01-12?06:00??bd-2.0.1\conf.tab.h
?????文件??????13401??2005-01-12?05:42??bd-2.0.1\README
?????文件???????1737??2005-01-12?05:15??bd-2.0.1\Makefile.in
?????文件???????5598??2005-01-10?06:36??bd-2.0.1\install-sh
?????文件???????6460??2005-01-12?07:13??bd-2.0.1\CHANGELOG
?????文件???????5319??2006-01-12?10:26??bd-2.0.1\bandwidthd.h~
?????文件???????5318??2006-01-13?14:35??bd-2.0.1\bandwidthd.h
?????文件??????38520??2006-01-13?16:28??bd-2.0.1\bandwidthd.c
?????目錄??????????0??2006-07-06?16:12??bd-2.0.1\band
?????文件???????1017??2006-09-02?10:30??bd-2.0.1\band\band.clw
?????文件???????3543??2006-01-13?15:13??bd-2.0.1\band\ReadMe.txt
?????文件???????1302??2006-01-13?15:13??bd-2.0.1\band\band.h
?????文件???????2035??2006-01-13?15:13??bd-2.0.1\band\band.cpp
?????文件???????1320??2006-01-13?15:13??bd-2.0.1\band\bandDlg.h
?????文件???????4076??2006-01-13?15:13??bd-2.0.1\band\bandDlg.cpp
............此處省略34個文件信息
- 上一篇:jxl.jar完整包
- 下一篇:畢業設計ssm整合的火車票查詢系統
評論
共有 條評論