From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] doc: announce API change for rte_ether.h Date: Mon, 14 Dec 2015 09:30:58 -0800 Message-ID: <20151214093058.2207f569@xeon-e3> References: <1449790022-24126-1-git-send-email-stephen@networkplumber.org> <2618453.kF8WIUB5uB@xps13> <20151214153055.GA37304@bricha3-MOBL3> <3122170.KpSg9jKaig@xps13> <20151214160025.GA37212@bricha3-MOBL3> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Bruce Richardson Return-path: Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by dpdk.org (Postfix) with ESMTP id 4645091CC for ; Mon, 14 Dec 2015 18:30:51 +0100 (CET) Received: by padhk6 with SMTP id hk6so66860057pad.2 for ; Mon, 14 Dec 2015 09:30:50 -0800 (PST) In-Reply-To: <20151214160025.GA37212@bricha3-MOBL3> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > FreeBSD > > ------- > > > > struct ether_addr { > > u_char octet[ETHER_ADDR_LEN]; > > } __packed; > > > > struct ether_header { > > u_char ether_dhost[ETHER_ADDR_LEN]; > > u_char ether_shost[ETHER_ADDR_LEN]; > > u_short ether_type; > > } __packed; > > > > Unfortunate. While the idea seems good, I think the structures being different > on the different OS's is a problem that need to be solved before we make such > a change. The different BSD variants have different definitions (ie NetBSD different than FreeBSD) Since the data structures are conformant, the other possiblity is adding ether_ntoa family prototypes to rte_ether.h