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 1835F45A50; Sat, 28 Sep 2024 18:20:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA79D402BD; Sat, 28 Sep 2024 18:20:49 +0200 (CEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id C82EC40273 for ; Sat, 28 Sep 2024 18:20:46 +0200 (CEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-71c5df16b10so1167025b3a.0 for ; Sat, 28 Sep 2024 09:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727540446; x=1728145246; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T6Dm/zgCdniYXTrbwXhb1oMp8y2UQ30lUtZPhGN0iLg=; b=jvm22uuP2q7Rna5YGDXOwJTrarqPflrsZ1GueIVjYkdwjSpSPrOfeDfdf9fshXQOuT iXg5tw7GYoDZuHVbCY9aYNlXCovZFcnVjwH9ee+k/hVbhtAyQQyiRGeDPK65ao/2HFai LL5P3GWqr33LbI6AcLkGs6amzblAf1/P1ln2AhOP9TXq3drWxj86+5g0L6h9YeLBOUxs ywYcfoNx/7KN1142A7Fvw1l5pejHjmEBFBBOpx2tR58OKUyc4lo7iUXNuOHKcBcbAbTp bXKGlrTpszpHjMMU/j+v/aCq+imsoiomZt3TVySPVmsXnWe+KPSVR7CPd92EvbaWnpfw 4TjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727540446; x=1728145246; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T6Dm/zgCdniYXTrbwXhb1oMp8y2UQ30lUtZPhGN0iLg=; b=QXROfgIW2I6mPUcsv3NOftJyDX3hupTcdG/OFFzu0ogrXcLcTki9JP7zkwll6jQxiX Jn/T9CwCQF7kBXUJ7B/Dp6JotsfhQgZIu0Jwy3hOhKmGEW/4U6e7pBUONLv9NgcAMOlk 2QccyKrz4lkEAhSPkMR1eHSZZPnQSTZrEEOMlyO4T2dHjPU2m9D0ypmqpR26Lw3Tq2fE ilH+DN0UCdQmrGjQZHD6KV++vR8oT+8fKwkrr0GW+3lr1cVadDGML0L3cl3VPZCfQtSX pWgU4lcxw0jN/NvYYB/ATsPMs5FFfKAfI9DMLxEiz2eIcj2VZ2708dZjMTZi4rbCwOti gmoA== X-Gm-Message-State: AOJu0YxSTXnZkNbhktbGPk9YgDWNAzaBYysMIYIomT11/QE3MF4Ngwah jdfWhRyB6Fc5ZD++f8CGMt+bGyzoMON5W3ixJZjhaGICHyWfXCLhG0K6klzS4qQSOTfTdTVUXbz d X-Google-Smtp-Source: AGHT+IEvhJOgo8g4hanMl65lzc/PBlhb+6NHW5ZsL119RWQuncZUEc4Im/f+eDpLOHI43Vq20t1C0Q== X-Received: by 2002:a05:6a21:6481:b0:1d3:2993:c2fa with SMTP id adf61e73a8af0-1d4fa7ae349mr10596767637.40.1727540445831; Sat, 28 Sep 2024 09:20:45 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6db2b9407sm2969107a12.23.2024.09.28.09.20.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Sep 2024 09:20:45 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v9 1/8] net: add more icmp types Date: Sat, 28 Sep 2024 09:18:31 -0700 Message-ID: <20240928162035.849326-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240928162035.849326-1-stephen@networkplumber.org> References: <20240312220129.70667-1-stephen@networkplumber.org> <20240928162035.849326-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Add more defines for additional defined ICMP types. Signed-off-by: Stephen Hemminger --- lib/net/rte_icmp.h | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/lib/net/rte_icmp.h b/lib/net/rte_icmp.h index 4bf64d70ad..b51b60a6d2 100644 --- a/lib/net/rte_icmp.h +++ b/lib/net/rte_icmp.h @@ -54,10 +54,24 @@ struct rte_icmp_hdr { } __rte_packed; /* ICMP packet types */ -#define RTE_IP_ICMP_ECHO_REPLY 0 -#define RTE_IP_ICMP_ECHO_REQUEST 8 -#define RTE_ICMP6_ECHO_REQUEST 128 -#define RTE_ICMP6_ECHO_REPLY 129 +#define RTE_IP_ICMP_ECHO_REPLY 0 +#define RTE_IP_ICMP_DEST_UNREACH 3 +#define RTE_IP_ICMP_SOURCE_QUENCH 4 +#define RTE_IP_ICMP_REDIRECT 5 +#define RTE_IP_ICMP_ECHO_REQUEST 8 +#define RTE_IP_ICMP_TIME_EXCEEDED 11 +#define RTE_IP_ICMP_PARAMETERPROB 12 +#define RTE_IP_ICMP_TIMESTAMP 13 +#define RTE_IP_ICMP_TIMESTAMPREPLY 14 +#define RTE_IP_ICMP_INFO_REQUEST 15 +#define RTE_IP_ICMP_INFO_REPLY 16 + +#define RTE_ICMP6_ECHO_REQUEST 128 +#define RTE_ICMP6_ECHO_REPLY 129 +#define RTE_ND_ROUTER_SOLICIT 133 +#define RTE_ND_ROUTER_ADVERT 134 +#define RTE_ND_NEIGHBOR_SOLICIT 135 +#define RTE_ND_NEIGHBOR_ADVERT 136 #ifdef __cplusplus } -- 2.45.2