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 94BA245716; Thu, 1 Aug 2024 21:06:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 36AB840E38; Thu, 1 Aug 2024 21:06:30 +0200 (CEST) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id 8986640668 for ; Thu, 1 Aug 2024 21:06:28 +0200 (CEST) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1ff4568676eso19887495ad.0 for ; Thu, 01 Aug 2024 12:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1722539188; x=1723143988; 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=LPoPMuWjjrTWYXAFqW4Fi54RT23qllLTTIghqYDZ7iE=; b=PFPSQ3WwtyUPr/OzbkYeClz64Q6pblEM6oQ3byknZaG7rYnGhICbCXbBncqZDMDPy4 0S9NcCdm0OajPyZyFlgv7ghO6SE7guWO2ew5GauYPV2Haoz6zy4V8eCxnTFmHjp0VY6q LCJ8J9xcIBlVHVjZtA9Xc1t6wexQvOnBL46UIEZHi/i8RCOLZqxYpV0R2t3UbTHdHfte Cq66lpdtFPJ2Sq5SgHnPJgVs+yum4BMUGqmzlK/Uhh1MLKQU99FvvsaNu1w2G7aSe2Ps 0qPjTZyOyejUTA2gP9mGhHVG1mgkKyR7YB0+dXlOapobEDudUvD5zjzVd7DvLpD52rvJ RIMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722539188; x=1723143988; 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=LPoPMuWjjrTWYXAFqW4Fi54RT23qllLTTIghqYDZ7iE=; b=C8vp6V6EXVrQQFk5Tywwbd2nPsQHuZMb4Q6p4VXQUGA3UpJn6r9Vc493KX6aUR67qh sglOT7fX8u5TcODr0koKO+EaH/HBww1RVxE/LwkI376CYR49/Nb1unKdf2ej0MTnvhUB g9sxHRkk4zBLldAnrfNd+1xNWhhpUhqLiKy4dWBiL5iYDIZd3Q2MTw0y/CKTfUo1gWc/ pIy63zIDMj7YLy5zC3SttQ98PL8p/C0j0uYv2rQaLr/mv12CIAdmyHn42zynvXI26d9G +5bPvA3SRFRm7/flPLL1gj7GKfWAp0bt3204u1UnuWi0j0BsW/LksugNd2ZoOdJJ6ezi 4k5w== X-Gm-Message-State: AOJu0YzPkQGtK4YqwCsFo5MmGeSEi1Iu6P+gFD47Y+e2NWId/ICnRzAk LYIrYEwtNb8TvNT+kw0sAeUsaqaOA563JNne/wddZz8+L/wc+4V5Y5qTGhxTL/7PTU9HSIBIdcj i X-Google-Smtp-Source: AGHT+IFyeyeQBMAe6ErbG2FotnERUtWa2r8PaXRHa/Atac0JuaIsk9EW3WO5XICj7C5/amf3VzhJEw== X-Received: by 2002:a17:902:da83:b0:1fd:9b96:32f5 with SMTP id d9443c01a7336-1ff572b9a30mr15667135ad.31.1722539187669; Thu, 01 Aug 2024 12:06:27 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ff58f5a222sm2371955ad.112.2024.08.01.12.06.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 12:06:27 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v5 1/4] net: add more icmp types Date: Thu, 1 Aug 2024 12:04:40 -0700 Message-ID: <20240801190617.201574-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240801190617.201574-1-stephen@networkplumber.org> References: <20240312220129.70667-1-stephen@networkplumber.org> <20240801190617.201574-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.43.0