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 C5BB74571E; Fri, 2 Aug 2024 20:08:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F2A7F427A7; Fri, 2 Aug 2024 20:08:52 +0200 (CEST) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id BBFE340E22 for ; Fri, 2 Aug 2024 20:08:50 +0200 (CEST) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1fda7fa60a9so77136965ad.3 for ; Fri, 02 Aug 2024 11:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1722622130; x=1723226930; 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=qiHL/s2m9HRGEp1RcGyUhUv2gaRQz40DlDTYDyk4BuUxkk9PssVq8fvNqqry1riMou EhlzcqI7N/odIKJq+FcWcOvb+/AWErKvlKsIYxa9yN+nnPovJ5pf/sYbAmyOh6iSgpXA HX2YByxFh7TNMEUwq4zQj12mfoBUi4jljaK4NejwdLfUEOsvTSItvBfPxyOqqslu40AG BsxFcAKIllvGhw6dDFexyA1vbibXJ1K4njvphq3+BNcV3Et9cYlfFiCzYN9wDw6bONI3 ifZ1Vv/2lVwKMhOXad3e0zeQeSBjEGKDDmRJ0xzREtnFFpU2h+WSAvwMPi0yoyQ+cP5b l5pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722622130; x=1723226930; 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=UfG6YuFRAp+hLP1KLWZU5Y+s32by/bBHYpMSrILHd+pqVkhKyvrhoUtg9NZxo1ENin ms9XQjZ0LxTnp3eUBwop/ebG/Cpf3eEdizEMo2MwS66tTOYmWKiubFIz6QXlta5PZbNB CoOQ2YyZUabc1QO1UoxUyyhDo1sTGyZnwK9lA9rijn8Yus0ydyle7vGWHM7S7KyYdkzh tI0HP7szrUPiLHc+34Hkc7hVrMuJ++A4GbF7nRJCkC1E0eEDWTC1qB0rJCZa145iYeyn n+ty3TN+XLzfFeKxHDJDkSlfGVp36fwVimpnX5/XxI8LJ1/e4GdNpReS65sPUSj1zSCu iq0Q== X-Gm-Message-State: AOJu0YwH70pHAr8B9kTk09nsvDIR0CMD9A7ylJIcg0BxBwm9pcHEfdo0 FPMoEj+sXMABYV90NfiET+lnwUnOCb58ds3MTm5fihB9Olwcy+91RO8gq7GMyEPscqIFLbTbmYd z X-Google-Smtp-Source: AGHT+IGrhJXhvsQYpx7SOBlALnKx6HP2+iKs2/LAx56+qk0w4Lfn0e+E+b9qGIpmrCD/woXfktqSJg== X-Received: by 2002:a17:902:e5c4:b0:1fb:451a:449b with SMTP id d9443c01a7336-1ff5749b5c9mr53928725ad.60.1722622129849; Fri, 02 Aug 2024 11:08:49 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ff58f6a540sm20228195ad.118.2024.08.02.11.08.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Aug 2024 11:08:49 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v6 1/4] net: add more icmp types Date: Fri, 2 Aug 2024 11:07:44 -0700 Message-ID: <20240802180838.862858-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240802180838.862858-1-stephen@networkplumber.org> References: <20240312220129.70667-1-stephen@networkplumber.org> <20240802180838.862858-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