[NETNS]: Add namespace parameter to ip_options_compile.
ip_options_compile uses inet_addr_type which requires a namespace. The packet argument is optional, so parameter is the only way to obtain it. Pass the init_net there for now. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
ffc31d3d77
commit
0e6bd4a1c6
@@ -347,7 +347,8 @@ extern int ip_forward(struct sk_buff *skb);
|
||||
extern void ip_options_build(struct sk_buff *skb, struct ip_options *opt, __be32 daddr, struct rtable *rt, int is_frag);
|
||||
extern int ip_options_echo(struct ip_options *dopt, struct sk_buff *skb);
|
||||
extern void ip_options_fragment(struct sk_buff *skb);
|
||||
extern int ip_options_compile(struct ip_options *opt, struct sk_buff *skb);
|
||||
extern int ip_options_compile(struct net *net,
|
||||
struct ip_options *opt, struct sk_buff *skb);
|
||||
extern int ip_options_get(struct ip_options **optp,
|
||||
unsigned char *data, int optlen);
|
||||
extern int ip_options_get_from_user(struct ip_options **optp,
|
||||
|
Reference in New Issue
Block a user