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 E55AB45720; Fri, 2 Aug 2024 21:58:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4CB5642793; Fri, 2 Aug 2024 21:58:37 +0200 (CEST) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mails.dpdk.org (Postfix) with ESMTP id 858DD40E01 for ; Fri, 2 Aug 2024 21:58:35 +0200 (CEST) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-7a1d48e0a5fso5080692a12.3 for ; Fri, 02 Aug 2024 12:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1722628714; x=1723233514; 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=JZDITCSuCO8Sutn7dlmTleEssqkgLMxJJ4IC2Wa4XS1lUGac2ZsC7U4gNq8VteW1lC fxIGV+iNclns/yj9fgraMNGFmSZsI1Cf+ynFDv/qTNIdVcS6TstTaprgb2vQXKMvb4xO p+EODHX3mgPKEZwrrQrLPjk6nGrewTcHxUsOukLONBQmf9XIvCtOPpyR/bCa8xwt8Nmo 9PvIHP/XBFXptjOlLi2Cl+vD70bWaL23VUGrsgsnk/ipj4/4z3U10jjKJeH+z9DqCBEn cThp6Q4eu5Ctb/DW4yZD8g4Zm6kNIExVekuCmfj1BadOSZZOnM3fh1JGphz4lpBqcIbX onjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722628714; x=1723233514; 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=MJGlUgid/wzpO+97PKabJtR/oKoSCpGOgbtBOV+n8VhZQPHbeJ/sRdDgYl7IdSJWA6 mTNfZK1aO1OL4tRoIUWEwFPSyOrOXcmVXPLHzbfR7cYqJW9TBLD9O1AY1jtmJ94SPaje 0AYB6jdh03B3v/PEiU44rfxWUNM2V0WZdgsGpbloXiFfqNbF3bPnSaH1O/xSx3aEJhuJ 6qGs9Pg+cD2yqIJw1+XQhircgytoeUmnhwgpgDfHE+wQANdW3XsxUuPI15e1L0Wy7dSP pIYbhzWJ0mBeksgHjnYqs29lbXXTTuttxEWlekjnwxEf/XlX3xabG4Kg16nKoDVb8ieJ 7oow== X-Gm-Message-State: AOJu0YxNXLsxlUt6rHfpXbRJfc5GG6t2XCSAGm8SXOHIWMZROF60vgwa hKb9ymZqk0V+2+657DAfX6TUeYTdfZGH5UNEgkiiRkycrkGaKoJGWVZWApVwOM1mXtfYxcFIqkV N X-Google-Smtp-Source: AGHT+IHbtFVo6DNkBNdpW3AFTKY7mSLgYZXun2HqjwVnJgZLuAaPjsAAtiOslHjcHfvM19g+2l6gow== X-Received: by 2002:a05:6a20:72a5:b0:1c3:a63a:cef2 with SMTP id adf61e73a8af0-1c69958569amr6231435637.28.1722628714473; Fri, 02 Aug 2024 12:58:34 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7106ecfc344sm1697180b3a.151.2024.08.02.12.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Aug 2024 12:58:34 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v7 1/4] net: add more icmp types Date: Fri, 2 Aug 2024 12:56:52 -0700 Message-ID: <20240802195824.1336603-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240802195824.1336603-1-stephen@networkplumber.org> References: <20240312220129.70667-1-stephen@networkplumber.org> <20240802195824.1336603-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