From: Pablo Neira Ayuso <pablo@netfilter.org>
To: netfilter-devel@vger.kernel.org
Cc: netdev@vger.kernel.org
Subject: [PATCH RFC 1/4] netlink: add NLA_PAD definition
Date: Wed, 7 Feb 2018 02:37:10 +0100 [thread overview]
Message-ID: <20180207013713.2432-2-pablo@netfilter.org> (raw)
In-Reply-To: <20180207013713.2432-1-pablo@netfilter.org>
The new generic netlink description infrastructure needs this new type
to describe padding attributes.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
include/net/netlink.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/net/netlink.h b/include/net/netlink.h
index 0c154f98e987..76e850ead593 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -180,6 +180,7 @@ enum {
NLA_S32,
NLA_S64,
NLA_BITFIELD32,
+ NLA_PAD,
__NLA_TYPE_MAX,
};
@@ -209,6 +210,7 @@ enum {
* given type fits, using it verifies minimum length
* just like "All other"
* NLA_BITFIELD32 A 32-bit bitmap/bitselector attribute
+ * NLA_PAD Empty attribute to align next attribute to 64-bits
* All other Minimum length of attribute payload
*
* Example:
--
2.11.0
next prev parent reply other threads:[~2018-02-07 1:37 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-07 1:37 [PATCH RFC 0/4] Netlink bus descriptions Pablo Neira Ayuso
2018-02-07 1:37 ` Pablo Neira Ayuso [this message]
2019-03-29 10:44 ` [PATCH RFC 1/4] netlink: add NLA_PAD definition Johannes Berg
2018-02-07 1:37 ` [PATCH RFC 2/4] netlink: add generic object description infrastructure Pablo Neira Ayuso
2018-02-08 1:28 ` Randy Dunlap
2018-02-08 16:21 ` Pablo Neira Ayuso
2019-03-29 10:48 ` Johannes Berg
2018-02-07 1:37 ` [PATCH RFC 3/4] netfilter: nfnetlink: add support for netlink descriptions Pablo Neira Ayuso
2018-02-07 1:37 ` [PATCH RFC 4/4] netfilter: nf_tables: add netlink description Pablo Neira Ayuso
2019-03-29 10:59 ` Johannes Berg
2019-04-11 19:26 ` Pablo Neira Ayuso
2019-04-12 11:56 ` Johannes Berg
2019-04-26 16:42 ` Pablo Neira Ayuso
2019-04-26 17:17 ` Johannes Berg
2019-04-26 17:28 ` Johannes Berg
2019-04-26 18:04 ` Pablo Neira Ayuso
2019-04-26 19:14 ` Johannes Berg
2019-04-26 19:20 ` Pablo Neira Ayuso
2019-04-26 19:37 ` Johannes Berg
2019-04-26 19:46 ` Johannes Berg
2019-04-27 10:57 ` Pablo Neira Ayuso
2019-04-28 19:53 ` Johannes Berg
2019-04-27 10:52 ` Pablo Neira Ayuso
2019-04-28 19:51 ` Johannes Berg
2019-04-26 20:47 ` Michal Kubecek
2019-04-26 20:51 ` Johannes Berg
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=20180207013713.2432-2-pablo@netfilter.org \
--to=pablo@netfilter.org \
--cc=netdev@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).