From da3eeea4e6e26ce51a9aeade42d5fd966f8b6e04 Mon Sep 17 00:00:00 2001 From: lijia Date: Tue, 7 Sep 2021 15:47:24 +0800 Subject: TSG-7561, 支持捕获sapp under ddos bypass的包. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tcpdump.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/tcpdump.c') diff --git a/src/tcpdump.c b/src/tcpdump.c index 6b56ed9..e5d6d78 100644 --- a/src/tcpdump.c +++ b/src/tcpdump.c @@ -1384,7 +1384,8 @@ static short get_pkt_classify_optarg(const char *optarg) pkt_classify_flag |= PKT_CLASSIFY_ERROR; else if (strcasecmp(section, "repeat") == 0) pkt_classify_flag |= PKT_CLASSIFY_REPEAT; - + else if (strcasecmp(section, "bypass") == 0) + pkt_classify_flag |= PKT_CLASSIFY_BYPASS; else { return 0; @@ -3367,7 +3368,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|repeat ]. specify packet capture classifier by direction and operation\n"); +"\t\t[ --classify in|forward|inject|drop|error|repeat|bypass ]. 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 -- cgit v1.2.3