> On 20 Dec 2019, at 01:16, Stephen Hemminger <step...@networkplumber.org> 
> wrote:
> 
> On Thu, 19 Dec 2019 23:18:32 +0100
> Alfredo Cardigliano <cardigli...@ntop.org> wrote:
> 
>> +
>> +#pragma pack(push, 1)
>> +
> 
> Really, packing leads to unaligned data structures and is generally
> a bad idea.


This specific file defines data structures shared with the adapter (and other 
OS drivers)
thus any additional padding should be avoided. Actually the pragma is 
unnecessary 
here, as who wrote this file worked pretty hard tweaking the structs by hand to 
be sure
that they are all formed such that the fields are on their appropriate byte 
boundaries 
and all field padding is explicitly defined.

Alfredo

Reply via email to