From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2C3C6A0C41; Tue, 30 Nov 2021 16:02:46 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B276641142; Tue, 30 Nov 2021 16:02:45 +0100 (CET) Received: from mx0a-00196b01.pphosted.com (mx0b-00196b01.pphosted.com [67.231.157.166]) by mails.dpdk.org (Postfix) with ESMTP id C68B141140 for ; Tue, 30 Nov 2021 16:02:44 +0100 (CET) Received: from pps.filterd (m0096262.ppops.net [127.0.0.1]) by mx0b-00196b01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1AU7pGNj001214; Tue, 30 Nov 2021 10:02:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netscout.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=netscout.com.09.24.2020; bh=Lbi/6vTcJUQo1SFZTVwWPCIYsyaBWl4N3F+AZGF4yXs=; b=CeEmf/sfR7rJNL/vQ2N5j1Yj7r5LBTZKZTTMdZtL4nLRetH48NcZwzzWkzETn0E9E8eX 3mKVNSpkxsqa9y6vudbCwue8wBUXecfRbb8EeX0Gnhh1BtXUxDJFLb/3pqSdnsrIdPq7 zIO31SgcZPm6t6TeGlPywdaQrySLGiWYpT80wy+m7L+AmtpB2bTGht48/0PYat73ES3K GpZJROtaXZ/t06dFAABp/DhXWjlLBkptoWA3TjzAo4FIxMF+xcujWbY3WML6Yko5LL3E +zuim8TO71lxZpgT30PQtscbQpFeXMfXyIPliRxwLxQA8JtXtGMw/kVQ6mC8wUDNXVkZ vw== Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2174.outbound.protection.outlook.com [104.47.58.174]) by mx0b-00196b01.pphosted.com (PPS) with ESMTPS id 3cn66095cd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Nov 2021 10:02:43 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eps60+3weBD+zc+SqJZoETyUfPow1FLBXP+m0vGuCFsbeY6CGmcdMhUswavZ4Y33Xdvhz7T1OQsx3eb5nNfL+COLHxBV0RnjtBTdIukzXafK2rW6USQiHZH2qiaxcJpE3rmrjQfQBmswfO67hq1zZFjtyq62CnB22LShkwJ6AiE2Y6+T7ofVPyu2XjMFo1bTjs309N3/nlSjKcO/XlmjE6oWycPkGR/cMXX3A+SZtA1w0CF0jQNI5Ykt1ahSYuJ+dyduP/ym4H6FGwbe978WlUkKIY5+JmeiM1fLUGMwii7tmKBrOfhgquUp8S8J7puB+isGj/beKX7IX2/bM0iZow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Lbi/6vTcJUQo1SFZTVwWPCIYsyaBWl4N3F+AZGF4yXs=; b=dNUdgnmQn0HzLW9OsJndnoCTnUpLZqi8Bmo8YSvI37XSA5bbbeZ0OxPQO9bbPeZxxdUa3dorYUWitu6dBE7KZWZX8vkAN2qHAqBttB6ZfSB1TeMlOUbhFLPExUTYfCR+hGd0jZd9bZdbd/K43H2eD4NQeC/QTW4pQuHWIoKNUWEqQNbbguwkbZwzczQAzUnJqtCHuejEpUUhr5hnaYlwKbRYV1vBRZ8sjWvK1Gm7NVmHEUYE1NCdYLn49WIS9ZRX4XYlPNbw2CedDgZ8pmYzVccGHzb7r9egbEtvS9VeAPtg8I/+PLr5lf+TaDPMYtYzm19iyXh60dHa25S7kdsigA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 216.130.192.25) smtp.rcpttodomain=dpdk.org smtp.mailfrom=netscout.com; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=netscout.com; dkim=none (message not signed); arc=none Received: from BN9PR03CA0196.namprd03.prod.outlook.com (2603:10b6:408:f9::21) by DM6PR01MB4523.prod.exchangelabs.com (2603:10b6:5:79::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.11; Tue, 30 Nov 2021 15:02:35 +0000 Received: from BN7NAM10FT004.eop-nam10.prod.protection.outlook.com (2603:10b6:408:f9:cafe::c2) by BN9PR03CA0196.outlook.office365.com (2603:10b6:408:f9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23 via Frontend Transport; Tue, 30 Nov 2021 15:02:35 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 216.130.192.25) smtp.mailfrom=netscout.com; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=netscout.com; Received-SPF: Fail (protection.outlook.com: domain of netscout.com does not designate 216.130.192.25 as permitted sender) receiver=protection.outlook.com; client-ip=216.130.192.25; helo=smtp.aa.arbor.net; Received: from smtp.aa.arbor.net (216.130.192.25) by BN7NAM10FT004.mail.protection.outlook.com (10.13.157.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23 via Frontend Transport; Tue, 30 Nov 2021 15:02:34 +0000 Received: from ARBknightMac.netscout.com (unknown [10.201.130.45]) by smtp.aa.arbor.net (Postfix) with ESMTP id E67431007EC; Tue, 30 Nov 2021 10:02:33 -0500 (EST) From: Josh Knight To: keith.wiles@intel.com Cc: dev@dpdk.org, Josh Knight Subject: [PATCH] pktgen: Fix setting user pattern from cli Date: Tue, 30 Nov 2021 10:02:18 -0500 Message-Id: <20211130150218.10254-1-joshua.knight@netscout.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 79dce3c3-a5ed-430a-4e18-08d9b41270f0 X-MS-TrafficTypeDiagnostic: DM6PR01MB4523: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2803; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QA+I4eO1xZgm8izoJLhemNC6slDTsuqCoi8+DfsauvgkZvp5htpfwBrQYgY/9qqXi08CypBFhupuZJ27ujXenmz+xrakLcC1JZSKe5hmQ3zBMgc82MWejB/4UFnFcQUiOSZVL7N4uyihN1X4LNphgbsbAOb3yZ+7L77yAWSGvjsqSMPbqqzrFZS2xQVI+/6X9j2MqqVwVLba1+VlKnA2reLJPxupw1O3Nw8mA1iu/8VMTLj3qiCCff4nYoejm3WvUoqr7/r8MW9T4vCEa48yligDDDZL+WcABH5EFKxTY9w8ZMeBIw7uIhDe14xtmynsfTFXbn8ktynjkhj+NWLzuW7xH+7Bh0LbFF7+/gjDEPrlsyeIIFfmA9f89AbpCzZ9Jl1VvrrO+KgIqyY1Ok3v9w/yTFoWXegyYZq4L0Fs3mgpyz8/ExL29V1MG3/8p4YCnRaa1OAygzaI/nNy8NwTGjgjsE6byyHM+M3eTzIBpJLZxOjHLNJOOiUW+Teq3a2bIL2wmGzDEyOv9EDpHAxgB7PXa3Dl2RMmEdjb/sfo9NERuG9fpxyTNL2X2StcLE4ZHTRht0VxfLGQoTPFC3Ob9XlUoh5FBZVG6uOHmfllHII9fhrIEdxxIeEWc9K7m+XHBVDCs6P1do6dGgke6ZIoLInmec4BZvIU0PltIniIYqN813rOrlASfklU9Oc0RqsmIhmjnDTd4XKyAZtECtx1VTOoQX/rFlc/N5VFZ6Uaq3U= X-Forefront-Antispam-Report: CIP:216.130.192.25; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:smtp.aa.arbor.net; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(36840700001)(46966006)(316002)(86362001)(5660300002)(186003)(1076003)(2616005)(107886003)(6666004)(336012)(6266002)(4326008)(82310400004)(47076005)(70206006)(83380400001)(8936002)(356005)(81166007)(2906002)(4744005)(36756003)(36860700001)(70586007)(508600001)(7696005)(26005)(8676002)(6916009)(36900700001); DIR:OUT; SFP:1102; X-OriginatorOrg: netscout.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2021 15:02:34.5694 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 79dce3c3-a5ed-430a-4e18-08d9b41270f0 X-MS-Exchange-CrossTenant-Id: 54f11205-d4aa-4809-bd36-0b542199c5b2 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=54f11205-d4aa-4809-bd36-0b542199c5b2; Ip=[216.130.192.25]; Helo=[smtp.aa.arbor.net] X-MS-Exchange-CrossTenant-AuthSource: BN7NAM10FT004.eop-nam10.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR01MB4523 X-Proofpoint-ORIG-GUID: UuHJBD2irYUy3jevSsnOfyFFFq7uQlB8 X-Proofpoint-GUID: UuHJBD2irYUy3jevSsnOfyFFFq7uQlB8 X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 phishscore=0 mlxlogscore=387 spamscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 bulkscore=0 adultscore=0 priorityscore=1501 mlxscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111300080 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org When setting the user pattern from the pktgen cli, it would always be incorrectly set to the string 'pattern' regardless of input. This can be demonstrated simply by setting a pattern set 0 pattern user set 0 user pattern asdfasdf Signed-off-by: Josh Knight --- app/cli-functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cli-functions.c b/app/cli-functions.c index 4293444..41d354b 100644 --- a/app/cli-functions.c +++ b/app/cli-functions.c @@ -652,7 +652,7 @@ set_cmd(int argc, char **argv) break; case 25: foreach_port(portlist, - pattern_set_user_pattern(info, argv[3])); + pattern_set_user_pattern(info, argv[4])); break; case 30: p = strchr(argv[4], '/'); -- 2.30.1 (Apple Git-130)