Skip to content

Commit

Permalink
Merge pull request #15 from pandax381/master
Browse files Browse the repository at this point in the history
0.9.6b
  • Loading branch information
pandax381 committed Jan 26, 2016
2 parents 92d06d0 + f36de1c commit fe71212
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 17 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2016/01/26: Ver 0.9.6b
- fixed typo (quite, qiute => quiet)

2015/05/20: Ver 0.9.6a
- fixed OSX 10.8 and earlier

Expand Down
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ usage: miruo [option] [expression]
-L, --session-limit=NUM # active session limit. Default 1024
-l, --segment-limit=NUM # active segment limit. Default 65536
-m, --dpi-mode=mode # deep packet inspection mode. (now support only http)
-q, --quite #
-q, --quiet #
--all # all session lookup
--live # live mode(all segment lookup)

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

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

Expand Down
4 changes: 2 additions & 2 deletions README.ja
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ usage: miruo [option] [expression]
-L, --session-limit=NUM # active session limit. Default 1024
-l, --segment-limit=NUM # active segment limit. Default 65536
-m, --dpi-mode=mode # deep packet inspection mode. (now support only http)
-q, --qiute #
-q, --quiet #
--all # all session lookup
--live # live mode(all segment lookup)

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

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

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
-L, --session-limit=NUM # active session limit. Default 1024
-l, --segment-limit=NUM # active segment limit. Default 65536
-m, --dpi-mode=mode # deep packet inspection mode. (now support only http)
-q, --qiute #
-q, --quiet #
--all # all session lookup
--live # live mode(all segment lookup)

Expand Down Expand Up @@ -155,7 +155,7 @@
</ul>
</dd>

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

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.67])
AC_INIT(miruo, 0.9.6a, [email protected])
AC_INIT(miruo, 0.9.6b, [email protected])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([miruo.c])
AC_CONFIG_HEADER([config.h])
Expand Down
18 changes: 9 additions & 9 deletions miruo.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void usage()
printf(" -L, --session-limit=NUM # active session limit. Default 1024\n");
printf(" -l, --segment-limit=NUM # active segment limit. Default 65536\n");
printf(" -m, --dpi-mode=mode # deep packet inspection mode. (now support only http)\n");
printf(" -q, --qiute # \n");
printf(" -q, --quiet # \n");
printf(" --all # all session lookup\n");
printf(" --live # live mode(all segment lookup)\n");
printf("\n");
Expand Down Expand Up @@ -995,7 +995,7 @@ void print_tcpsession(FILE *fp, tcpsession *c)
uint32_t ct = tcp_connection_time(c);
sprintf(ip[0], "%s:%u", inet_ntoa(c->ip[0].sin_addr), c->ip[0].sin_port);
sprintf(ip[1], "%s:%u", inet_ntoa(c->ip[1].sin_addr), c->ip[1].sin_port);
if(opt.quite){
if(opt.quiet){
fprintf(fp, "%s%8u.%03u|%21s == %-21s|%useg(%u)%s\n",
cl[0],
ct / 1000,
Expand Down Expand Up @@ -1036,7 +1036,7 @@ void print_tcpsession(FILE *fp, tcpsession *c)
}
}
if(opt.live == 0){
if(opt.quite){
if(opt.quiet){
fprintf(fp, "%s%s|%18s %s%s%s %-18s|%08X/%08X%s\n",
cl[0],
ts,
Expand Down Expand Up @@ -1200,7 +1200,7 @@ tcpsession *miruo_tcpsession_destroy(tcpsession *c, int view, char *msg, char *r
if(opt.live){
fprintf(stdout, "%s%04u:%04u %s %s (%s)%s\n", sc[0], c->sid, c->pkcnt, ts, msg, reason, sc[1]);
}else{
if(opt.quite){
if(opt.quiet){
fprintf(stdout, "%s%s|%s%s%s|%s%s\n", sc[0], ts, sl, msg, sr, reason, sc[1]);
}else{
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]);
Expand Down Expand Up @@ -1314,10 +1314,10 @@ tcpsession *miruo_tcpsession_connect(tcpsession *c, tcpsession *s, int *connect)
return(c);
}
opt.count_ts_error++;
miruo_tcpsession_destroy(c, (opt.quite < 2), "error break", "Duplicate connection(packet loss?)");
miruo_tcpsession_destroy(c, (opt.quiet < 2), "error break", "Duplicate connection(packet loss?)");
if(c = add_tcpsession(s)){
*connect = 1;
if(opt.quite < 1){
if(opt.quiet < 1){
c->segment.color = COLOR_RED;
c->view = 1;
}else{
Expand Down Expand Up @@ -1854,7 +1854,7 @@ int miruo_init()
{
memset(&opt, 0, sizeof(opt));
opt.loop = 1;
opt.quite = 0;
opt.quiet = 0;
opt.promisc = 1;
opt.viewdata = 0;
opt.fragment = 1;
Expand All @@ -1880,7 +1880,7 @@ struct option *get_optlist()
"version", 0, NULL, 'V',
"all", 0, NULL, 500,
"live", 0, NULL, 501,
"quite", 0, NULL, 'q',
"quiet", 0, NULL, 'q',
"fragment", 1, NULL, 'F',
"flagment", 1, NULL, 'F',
"color", 1, NULL, 'C',
Expand Down Expand Up @@ -1922,7 +1922,7 @@ void miruo_setopt(int argc, char *argv[])
version();
miruo_finish(0);
case 'q':
opt.quite++;
opt.quiet++;
break;
case 'F':
if(is_numeric(optarg)){
Expand Down
2 changes: 1 addition & 1 deletion miruo.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ typedef struct miruopt
int mode; // 動作モード。mオプションの値で決定
int all; // 1なら全セッション表示する
int live; // 1ならリアルタイム表示する
int quite; // 疑わしきは罰しないモード
int quiet; // 疑わしきは罰しないモード
int color; // カラー表示を有効にするかどうか
int lktype; // データリンク層の種別
int pksize; // キャプチャサイズ
Expand Down

0 comments on commit fe71212

Please sign in to comment.