From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 125852BD8 for ; Mon, 21 Mar 2016 10:13:53 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 21 Mar 2016 02:13:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,370,1455004800"; d="scan'208";a="673071135" Received: from pktoritx-mobl3.ger.corp.intel.com (HELO [10.252.4.171]) ([10.252.4.171]) by FMSMGA003.fm.intel.com with ESMTP; 21 Mar 2016 02:13:26 -0700 To: Marvin Liu , dev@dpdk.org References: <1458524684-13539-1-git-send-email-yong.liu@intel.com> From: Sergio Gonzalez Monroy Message-ID: <56EFBB35.6080901@intel.com> Date: Mon, 21 Mar 2016 09:13:25 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1458524684-13539-1-git-send-email-yong.liu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [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 09:13:54 -0000 On 21/03/2016 01:44, Marvin Liu wrote: > 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 Why not always use .__u6_addr.__u6_addr32[i] and avoid ifdef? Sergio > } > tunnel_filter_conf.ip_type = RTE_TUNNEL_IPTYPE_IPV6; > }