ipv6: Add ipv6_renew_options_kern() that accepts a kernel mem pointer.
Subsystems (4)
RFC PATCH v3 8/19 ipv6: Add ipv6_renew_options_kern() that accepts a kernel mem pointer.
The functionality is equivalent to ipv6_renew_options() except that the newopt pointer is in kernel, not user, memory
The kernel memory implementation will be used by the CALIPSO network labelling engine, which needs to be able to set IPv6 hop-by-hop options.
Signed-off-by Huw Davies <[email protected]>
--- include/net/ipv6.h | 6 ++++++ net/ipv6/exthdrs.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+)
include/net/ipv6.h +6 -0
@@ -304,6 +304,12 @@ struct ipv6_txoptions *ipv6_renew_options(struct sock *sk,int newtype, struct ipv6_opt_hdr __user *newopt, int newoptlen); +struct ipv6_txoptions * +ipv6_renew_options_kern (struct sock *sk, +struct ipv6_txoptions *opt, +int newtype, +struct ipv6_opt_hdr *newopt, +int newoptlen);struct ipv6_txoptions *ipv6_fixup_options (struct ipv6_txoptions *opt_space,struct ipv6_txoptions *opt);
net/ipv6/exthdrs.c +49 -0
61 lines not on this page · raw message
Signature · 1 line
2.7.0