struct nlmsghdr *nlh, struct fib_rule_hdr *frh,
struct nlattr **tb)
{
- struct net *net = skb->sk->sk_net;
+ struct net *net = sock_net(skb->sk);
int err = -EINVAL;
struct fib4_rule *rule4 = (struct fib4_rule *) rule;
static void fib4_rule_flush_cache(void)
{
- rt_cache_flush(-1);
+ rt_cache_flush(&init_net, -1);
}
static struct fib_rules_ops fib4_rules_ops_template = {