core: Update netlink policy structure
Newer versions of kernel require attribute structs to define lengths exactly. Change-Id: I7195b4974cf18ff3b3cbeb4d2ed863ff97ab7b92 Acked-by: Ryan Chapman <rchapman@qti.qualcomm.com> Signed-off-by: Conner Huff <chuff@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
1ea6d3f011
commit
609413920b
@@ -9,15 +9,18 @@
|
||||
#include <net/sock.h>
|
||||
#include <linux/skbuff.h>
|
||||
|
||||
#define RMNET_CORE_GENL_MAX_STR_LEN 255
|
||||
|
||||
/* Static Functions and Definitions */
|
||||
static struct nla_policy rmnet_genl_attr_policy[RMNET_CORE_GENL_ATTR_MAX +
|
||||
1] = {
|
||||
[RMNET_CORE_GENL_ATTR_INT] = { .type = NLA_S32 },
|
||||
[RMNET_CORE_GENL_ATTR_PID_BPS] = { .len =
|
||||
[RMNET_CORE_GENL_ATTR_PID_BPS] = { .type = NLA_EXACT_LEN, .len =
|
||||
sizeof(struct rmnet_core_pid_bps_resp) },
|
||||
[RMNET_CORE_GENL_ATTR_PID_BOOST] = { .len =
|
||||
[RMNET_CORE_GENL_ATTR_PID_BOOST] = { .type = NLA_EXACT_LEN, .len =
|
||||
sizeof(struct rmnet_core_pid_boost_req) },
|
||||
[RMNET_CORE_GENL_ATTR_STR] = { .type = NLA_NUL_STRING },
|
||||
[RMNET_CORE_GENL_ATTR_STR] = { .type = NLA_NUL_STRING, .len =
|
||||
RMNET_CORE_GENL_MAX_STR_LEN },
|
||||
};
|
||||
|
||||
#define RMNET_CORE_GENL_OP(_cmd, _func) \
|
||||
|
Reference in New Issue
Block a user