summaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
authorDmitry Safonov <dima@arista.com>2020-09-21 16:36:56 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2020-09-24 08:53:04 +0200
commit96392ee5a13b992563cfe07d23ee30d333b89126 (patch)
treeb0ef5dc0aaa0325c06151cbb6b5108680ef2749b /include/net/xfrm.h
parentxfrm/compat: Add 32=>64-bit messages translator (diff)
downloadlinux-96392ee5a13b992563cfe07d23ee30d333b89126.tar.xz
linux-96392ee5a13b992563cfe07d23ee30d333b89126.zip
xfrm/compat: Translate 32-bit user_policy from sockptr
Provide compat_xfrm_userpolicy_info translation for xfrm setsocketopt(). Reallocate buffer and put the missing padding for 64-bit message. Signed-off-by: Dmitry Safonov <dima@arista.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r--include/net/xfrm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index fa18cb6bb3f7..53618a31634b 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -2012,6 +2012,9 @@ struct xfrm_translator {
int maxtype, const struct nla_policy *policy,
struct netlink_ext_ack *extack);
+ /* Translate 32-bit user_policy from sockptr */
+ int (*xlate_user_policy_sockptr)(u8 **pdata32, int optlen);
+
struct module *owner;
};