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 F0C20459B0; Tue, 17 Sep 2024 05:31:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B575C402C4; Tue, 17 Sep 2024 05:31:32 +0200 (CEST) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id 6349F4021F for ; Tue, 17 Sep 2024 05:31:29 +0200 (CEST) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-206aee40676so29632705ad.0 for ; Mon, 16 Sep 2024 20:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1726543888; x=1727148688; 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=GytUGP8gElKPmvoaWXbZ0Q/5QFQZla4N4H7wqHbbwn/BfQ1O3/JVvRS3vKqngJ3Y79 D9WyW7veLudfS2AHbibvIGlldFrO8RnHOXoXfHMjdWvUBPo3UPULs0KDWXy6S3edM9rn FMzlwewJK5124dxhwYHtqWwU68ShEIFfTmrxKi4Byzf7iaavUYOtsnF+az4q2AbtEmV0 SP46cCPXUtOZ0BXUvW8o3a8jOIQtCZWlAwR+7EPzSguycC27REbVCyaxToFZEdceSJ0w gerVF9a1EVZyqoliqc6Ra8NjK8FcY/Liv6B6JGj2+qgLaTp3Ds4vk95WNF+hAaUEEPTW Yl4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726543888; x=1727148688; 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=OzwrVHLQ7pLh9csE34kc3eXfPVoYjoA32spCJqeSTD+QxnCLjtJu0XP8A159ZDwa9S 0R9ksuHwqwXxnS94HlGZOZyJ1kAEZ0jgKqtQGkqAZrX09zvhnlytcPr63xM0diRswj5K gloFYmB9TuKvsVFSPLO5UFkFI5DGtlHACDsRMqtBxgsMQgyaSEYFfvl3OGl/BE/TL/ws Z2vtoo9xj/FT2bA0YEYr4uRrL+xxQ1RjAzPYUJXKUzkcMldID3tKT6/FcwNROnXDS6Bm +V/Z7kk0naPxpy2cjFh39830sW7GSj13b+XVam6k+4BSldQ8Ohs95AbvTgMwxs6+B/en Ws6A== X-Gm-Message-State: AOJu0Yw4qCP5+s/+1crr9N6e3a3x+roysAluz++NQxUtFvglskpVqWEg frjGT8hYK+VvFfDwyHeht0LSRHU5Ki60Ayx+dY9bYzpNhJPYdHdISut04Cj/OJkb8GOHvqCGc3b o X-Google-Smtp-Source: AGHT+IGy+LI3Ifg00pboM1f8xK03rDV4HPSRyYAiqLs+ZEEPPhgsRzGfjcrHzJT9we5FC9cLr+PD5A== X-Received: by 2002:a17:903:444c:b0:206:8c18:a538 with SMTP id d9443c01a7336-20782a69a99mr169276875ad.32.1726543888329; Mon, 16 Sep 2024 20:31:28 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2079473d05dsm42647735ad.287.2024.09.16.20.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2024 20:31:27 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v8 1/7] net: add more icmp types Date: Mon, 16 Sep 2024 20:27:58 -0700 Message-ID: <20240917033117.66346-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240917033117.66346-1-stephen@networkplumber.org> References: <20240312220129.70667-1-stephen@networkplumber.org> <20240917033117.66346-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