From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 9782BB62 for ; Mon, 21 Mar 2016 02:44:51 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP; 20 Mar 2016 18:44:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,368,1455004800"; d="scan'208";a="70096195" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga004.fm.intel.com with ESMTP; 20 Mar 2016 18:44:50 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u2L1imH2032174; Mon, 21 Mar 2016 09:44:48 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id u2L1ijVo013575; Mon, 21 Mar 2016 09:44:47 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u2L1ijP1013571; Mon, 21 Mar 2016 09:44:45 +0800 From: Marvin Liu To: dev@dpdk.org Cc: Marvin Liu Date: Mon, 21 Mar 2016 09:44:44 +0800 Message-Id: <1458524684-13539-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] testpmd: fix build on FreeBSD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2016 01:44:52 -0000 Build log: /root/dpdk/app/test-pmd/cmdline.c:6687:45: error: no member named 's6_addr32' in 'struct in6_addr' rte_be_to_cpu_32(res->ip_value.addr.ipv6.s6_addr32[i]); This is caused by macro "s6_addr32" not defined on FreeBSD. Signed-off-by: Marvin Liu diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 9d52b8c..51ad23b 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -6684,7 +6684,11 @@ cmd_tunnel_filter_parsed(void *parsed_result, int i; for (i = 0; i < 4; i++) { tunnel_filter_conf.ip_addr.ipv6_addr[i] = +#ifdef RTE_EXEC_ENV_BSDAPP + rte_be_to_cpu_32(res->ip_value.addr.ipv6.__u6_addr.__u6_addr32[i]); +#else rte_be_to_cpu_32(res->ip_value.addr.ipv6.s6_addr32[i]); +#endif } tunnel_filter_conf.ip_type = RTE_TUNNEL_IPTYPE_IPV6; } -- 1.9.3