[dpdk-dev] [PATCH] doc: announce API change for rte_ether.h

Stephen Hemminger stephen at networkplumber.org
Mon Dec 14 18:30:58 CET 2015


> > 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



More information about the dev mailing list