Skip to content

Commit fe71212

Browse files
committed
Merge pull request #15 from pandax381/master
0.9.6b
2 parents 92d06d0 + f36de1c commit fe71212

File tree

7 files changed

+20
-17
lines changed

7 files changed

+20
-17
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2016/01/26: Ver 0.9.6b
2+
- fixed typo (quite, qiute => quiet)
3+
14
2015/05/20: Ver 0.9.6a
25
- fixed OSX 10.8 and earlier
36

README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ usage: miruo [option] [expression]
4545
-L, --session-limit=NUM # active session limit. Default 1024
4646
-l, --segment-limit=NUM # active segment limit. Default 65536
4747
-m, --dpi-mode=mode # deep packet inspection mode. (now support only http)
48-
-q, --quite #
48+
-q, --quiet #
4949
--all # all session lookup
5050
--live # live mode(all segment lookup)
5151

@@ -139,7 +139,7 @@ Since it can not capture SYN/BACK, it can not trace TCP
139139
If you want to analyze payload of segments to show protocol specific information, specify the mode (protocol name).
140140
http: shows HTTP request response information
141141

142-
-q, --quite
142+
-q, --quiet
143143
shows simple version of display
144144
If you prefer width shorter than 80 characters, you may want to use this option.
145145

README.ja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ usage: miruo [option] [expression]
4747
-L, --session-limit=NUM # active session limit. Default 1024
4848
-l, --segment-limit=NUM # active segment limit. Default 65536
4949
-m, --dpi-mode=mode # deep packet inspection mode. (now support only http)
50-
-q, --qiute #
50+
-q, --quiet #
5151
--all # all session lookup
5252
--live # live mode(all segment lookup)
5353

@@ -148,7 +148,7 @@ expressionにはTCPダンプと同じ書式でフィルタを記述できます
148148
モード(プロトコル名)を指定します。
149149
http: HTTPリクエスト・レスポンスの情報を表示します
150150

151-
-q, --qiute
151+
-q, --quiet
152152
シンプルな表示になります。
153153
横幅が80文字以内じゃないと我慢出来ない場合に指定するとよいかもです。
154154

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
-L, --session-limit=NUM # active session limit. Default 1024
4343
-l, --segment-limit=NUM # active segment limit. Default 65536
4444
-m, --dpi-mode=mode # deep packet inspection mode. (now support only http)
45-
-q, --qiute #
45+
-q, --quiet #
4646
--all # all session lookup
4747
--live # live mode(all segment lookup)
4848

@@ -155,7 +155,7 @@
155155
</ul>
156156
</dd>
157157

158-
<dt>-q, --qiute</dt>
158+
<dt>-q, --quiet</dt>
159159
<dd>シンプルな表示になります。
160160
横幅が <code>80</code> 文字以内じゃないと我慢出来ない場合に指定するとよいかもです。</dd>
161161

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Process this file with autoconf to produce a configure script.
33

44
AC_PREREQ([2.67])
5-
AC_INIT(miruo, 0.9.6a, [email protected])
5+
AC_INIT(miruo, 0.9.6b, [email protected])
66
AM_INIT_AUTOMAKE
77
AC_CONFIG_SRCDIR([miruo.c])
88
AC_CONFIG_HEADER([config.h])

miruo.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void usage()
3232
printf(" -L, --session-limit=NUM # active session limit. Default 1024\n");
3333
printf(" -l, --segment-limit=NUM # active segment limit. Default 65536\n");
3434
printf(" -m, --dpi-mode=mode # deep packet inspection mode. (now support only http)\n");
35-
printf(" -q, --qiute # \n");
35+
printf(" -q, --quiet # \n");
3636
printf(" --all # all session lookup\n");
3737
printf(" --live # live mode(all segment lookup)\n");
3838
printf("\n");
@@ -995,7 +995,7 @@ void print_tcpsession(FILE *fp, tcpsession *c)
995995
uint32_t ct = tcp_connection_time(c);
996996
sprintf(ip[0], "%s:%u", inet_ntoa(c->ip[0].sin_addr), c->ip[0].sin_port);
997997
sprintf(ip[1], "%s:%u", inet_ntoa(c->ip[1].sin_addr), c->ip[1].sin_port);
998-
if(opt.quite){
998+
if(opt.quiet){
999999
fprintf(fp, "%s%8u.%03u|%21s == %-21s|%useg(%u)%s\n",
10001000
cl[0],
10011001
ct / 1000,
@@ -1036,7 +1036,7 @@ void print_tcpsession(FILE *fp, tcpsession *c)
10361036
}
10371037
}
10381038
if(opt.live == 0){
1039-
if(opt.quite){
1039+
if(opt.quiet){
10401040
fprintf(fp, "%s%s|%18s %s%s%s %-18s|%08X/%08X%s\n",
10411041
cl[0],
10421042
ts,
@@ -1200,7 +1200,7 @@ tcpsession *miruo_tcpsession_destroy(tcpsession *c, int view, char *msg, char *r
12001200
if(opt.live){
12011201
fprintf(stdout, "%s%04u:%04u %s %s (%s)%s\n", sc[0], c->sid, c->pkcnt, ts, msg, reason, sc[1]);
12021202
}else{
1203-
if(opt.quite){
1203+
if(opt.quiet){
12041204
fprintf(stdout, "%s%s|%s%s%s|%s%s\n", sc[0], ts, sl, msg, sr, reason, sc[1]);
12051205
}else{
12061206
fprintf(stdout, "%s%04u:%04u %s |%s%s%s| %s%s\n", sc[0], c->sid, c->pkcnt, ts, sl, msg, sr, reason, sc[1]);
@@ -1314,10 +1314,10 @@ tcpsession *miruo_tcpsession_connect(tcpsession *c, tcpsession *s, int *connect)
13141314
return(c);
13151315
}
13161316
opt.count_ts_error++;
1317-
miruo_tcpsession_destroy(c, (opt.quite < 2), "error break", "Duplicate connection(packet loss?)");
1317+
miruo_tcpsession_destroy(c, (opt.quiet < 2), "error break", "Duplicate connection(packet loss?)");
13181318
if(c = add_tcpsession(s)){
13191319
*connect = 1;
1320-
if(opt.quite < 1){
1320+
if(opt.quiet < 1){
13211321
c->segment.color = COLOR_RED;
13221322
c->view = 1;
13231323
}else{
@@ -1854,7 +1854,7 @@ int miruo_init()
18541854
{
18551855
memset(&opt, 0, sizeof(opt));
18561856
opt.loop = 1;
1857-
opt.quite = 0;
1857+
opt.quiet = 0;
18581858
opt.promisc = 1;
18591859
opt.viewdata = 0;
18601860
opt.fragment = 1;
@@ -1880,7 +1880,7 @@ struct option *get_optlist()
18801880
"version", 0, NULL, 'V',
18811881
"all", 0, NULL, 500,
18821882
"live", 0, NULL, 501,
1883-
"quite", 0, NULL, 'q',
1883+
"quiet", 0, NULL, 'q',
18841884
"fragment", 1, NULL, 'F',
18851885
"flagment", 1, NULL, 'F',
18861886
"color", 1, NULL, 'C',
@@ -1922,7 +1922,7 @@ void miruo_setopt(int argc, char *argv[])
19221922
version();
19231923
miruo_finish(0);
19241924
case 'q':
1925-
opt.quite++;
1925+
opt.quiet++;
19261926
break;
19271927
case 'F':
19281928
if(is_numeric(optarg)){

miruo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ typedef struct miruopt
216216
int mode; // 動作モード。mオプションの値で決定
217217
int all; // 1なら全セッション表示する
218218
int live; // 1ならリアルタイム表示する
219-
int quite; // 疑わしきは罰しないモード
219+
int quiet; // 疑わしきは罰しないモード
220220
int color; // カラー表示を有効にするかどうか
221221
int lktype; // データリンク層の種別
222222
int pksize; // キャプチャサイズ

0 commit comments

Comments
 (0)