From: Adam Nielsen <a.nielsen@shikadi.net>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Netfilter Developer Mailing List <netfilter-devel@vger.kernel.org>
Subject: Re: [PATCH 1/2 v2] New netfilter target to trigger LED devices
Date: Wed, 12 Nov 2008 21:10:43 +1000 [thread overview]
Message-ID: <491AB9B3.5060207@shikadi.net> (raw)
In-Reply-To: <alpine.LNX.1.10.0811121157200.17100@fbirervta.pbzchgretzou.qr>
>> Ah bummer, I forgot about that. Is this the best order?
>
> No, that will break offsetof() in .userspacesize, as it will
> become 0.
Oh, double bummer, I forgot about that also.
> add id - 27 bytes.
> add always_blink - 28 bytes.
> 28? That's good for alignment of a u32. Add delay.
> 32? That's good for alignment of a potentially-ptr64.
Ah okay, that works out quite well then.
> And it's solved, even without thinking of NULs or prefixes.
Sorry, I thought you meant "please explain where the 26 comes from"
> Just use [27] - the struct will be hardcoded forever,
> and putting #defines somewhere gives a wrong illusion it might be changeable.
Will do.
Cheers,
Adam.
next prev parent reply other threads:[~2008-11-12 11:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-11 11:31 [PATCH 1/2 v2] New netfilter target to trigger LED devices Adam Nielsen
2008-11-11 12:19 ` Jan Engelhardt
2008-11-12 10:32 ` Adam Nielsen
2008-11-12 11:01 ` Jan Engelhardt
2008-11-12 11:10 ` Adam Nielsen [this message]
2008-11-12 11:53 ` Jan Engelhardt
2008-11-12 10:42 ` Pablo Neira Ayuso
2008-11-12 11:06 ` Adam Nielsen
2008-11-12 11:17 ` Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=491AB9B3.5060207@shikadi.net \
--to=a.nielsen@shikadi.net \
--cc=jengelh@medozas.de \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.