Messages in this thread | | | Date | Wed, 28 Sep 2016 08:09:24 -0400 (EDT) | Subject | Re: [PATCH v5] net: ip, diag -- Add diag interface for raw sockets | From | David Miller <> |
| |
From: Jamal Hadi Salim <jhs@mojatatu.com> Date: Wed, 28 Sep 2016 08:06:51 -0400
> I understood well your point;-> Maybe my response was not clear: > _nobody should be fscking fondling pad fields_ setting them or > otherwise.
Especially considering potential future uses of the field, existing users absolutely must zero out the field.
Whether this is via a memset() of the entire structure or via an explicit initialization to zero is their choice.
So setting 'pad' is in fact valid.
| |