[NETLINK]: Introduce nested and byteorder flag to netlink attribute
This change allows the generic attribute interface to be used within the netfilter subsystem where this flag was initially introduced. The byte-order flag is yet unused, it's intended use is to allow automatic byte order convertions for all atomic types. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
9d5010db7e
commit
8f4c1f9b04
@@ -1279,7 +1279,7 @@ install_route:
|
||||
int remaining;
|
||||
|
||||
nla_for_each_attr(nla, cfg->fc_mx, cfg->fc_mx_len, remaining) {
|
||||
int type = nla->nla_type;
|
||||
int type = nla_type(nla);
|
||||
|
||||
if (type) {
|
||||
if (type > RTAX_MAX) {
|
||||
|
Reference in New Issue
Block a user