增加重复流量识别与过滤.
This commit is contained in:
@@ -1382,6 +1382,9 @@ static short get_pkt_classify_optarg(const char *optarg)
|
||||
pkt_classify_flag |= PKT_CLASSIFY_DROP;
|
||||
else if (strcasecmp(section, "error") == 0)
|
||||
pkt_classify_flag |= PKT_CLASSIFY_ERROR;
|
||||
else if (strcasecmp(section, "repeat") == 0)
|
||||
pkt_classify_flag |= PKT_CLASSIFY_REPEAT;
|
||||
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
@@ -1931,7 +1934,7 @@ main(int argc, char **argv)
|
||||
pkt_classify_flag = get_pkt_classify_optarg(optarg);
|
||||
if(pkt_classify_flag == 0)
|
||||
{
|
||||
error("unknown classify `%s', must be in|forward|inject|drop|error", optarg);
|
||||
error("unknown classify `%s', must be in|forward|inject|drop|error|repeat", optarg);
|
||||
}
|
||||
break;
|
||||
case OPTION_PKT_CLASSIFY_WATERMARK:
|
||||
@@ -3336,7 +3339,7 @@ print_usage(void)
|
||||
(void)fprintf(stderr,
|
||||
"\t\t[ --vlan-as-mac-in-mac ] force VLAN to be analysed as MAC-IN-MAC format.\n");
|
||||
(void)fprintf(stderr,
|
||||
"\t\t[ --classify in|forward|inject|drop|error ]. specify packet capture classifier by direction and operation\n");
|
||||
"\t\t[ --classify in|forward|inject|drop|error|repeat ]. specify packet capture classifier by direction and operation\n");
|
||||
(void)fprintf(stderr,
|
||||
"\t\t[ --enable_classify_watermark ]. enable record classify type in src mac address\n");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user