diff options
Diffstat (limited to 'net/ipv6/route.c')
| -rw-r--r-- | net/ipv6/route.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index c2bd74c5f8d9..b08879e97f22 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
| @@ -909,7 +909,7 @@ static void ip6_link_failure(struct sk_buff *skb) | |||
| 909 | { | 909 | { |
| 910 | struct rt6_info *rt; | 910 | struct rt6_info *rt; |
| 911 | 911 | ||
| 912 | icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_ADDR_UNREACH, 0, skb->dev); | 912 | icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_ADDR_UNREACH, 0); |
| 913 | 913 | ||
| 914 | rt = (struct rt6_info *) skb_dst(skb); | 914 | rt = (struct rt6_info *) skb_dst(skb); |
| 915 | if (rt) { | 915 | if (rt) { |
| @@ -1873,7 +1873,7 @@ static int ip6_pkt_drop(struct sk_buff *skb, u8 code, int ipstats_mib_noroutes) | |||
| 1873 | switch (ipstats_mib_noroutes) { | 1873 | switch (ipstats_mib_noroutes) { |
| 1874 | case IPSTATS_MIB_INNOROUTES: | 1874 | case IPSTATS_MIB_INNOROUTES: |
| 1875 | type = ipv6_addr_type(&ipv6_hdr(skb)->daddr); | 1875 | type = ipv6_addr_type(&ipv6_hdr(skb)->daddr); |
| 1876 | if (type == IPV6_ADDR_ANY || type == IPV6_ADDR_RESERVED) { | 1876 | if (type == IPV6_ADDR_ANY) { |
| 1877 | IP6_INC_STATS(dev_net(dst->dev), ip6_dst_idev(dst), | 1877 | IP6_INC_STATS(dev_net(dst->dev), ip6_dst_idev(dst), |
| 1878 | IPSTATS_MIB_INADDRERRORS); | 1878 | IPSTATS_MIB_INADDRERRORS); |
| 1879 | break; | 1879 | break; |
| @@ -1884,7 +1884,7 @@ static int ip6_pkt_drop(struct sk_buff *skb, u8 code, int ipstats_mib_noroutes) | |||
| 1884 | ipstats_mib_noroutes); | 1884 | ipstats_mib_noroutes); |
| 1885 | break; | 1885 | break; |
| 1886 | } | 1886 | } |
| 1887 | icmpv6_send(skb, ICMPV6_DEST_UNREACH, code, 0, skb->dev); | 1887 | icmpv6_send(skb, ICMPV6_DEST_UNREACH, code, 0); |
| 1888 | kfree_skb(skb); | 1888 | kfree_skb(skb); |
| 1889 | return 0; | 1889 | return 0; |
| 1890 | } | 1890 | } |
| @@ -2612,7 +2612,7 @@ ctl_table ipv6_route_table_template[] = { | |||
| 2612 | { } | 2612 | { } |
| 2613 | }; | 2613 | }; |
| 2614 | 2614 | ||
| 2615 | struct ctl_table *ipv6_route_sysctl_init(struct net *net) | 2615 | struct ctl_table * __net_init ipv6_route_sysctl_init(struct net *net) |
| 2616 | { | 2616 | { |
| 2617 | struct ctl_table *table; | 2617 | struct ctl_table *table; |
| 2618 | 2618 | ||
| @@ -2637,7 +2637,7 @@ struct ctl_table *ipv6_route_sysctl_init(struct net *net) | |||
| 2637 | } | 2637 | } |
| 2638 | #endif | 2638 | #endif |
| 2639 | 2639 | ||
| 2640 | static int ip6_route_net_init(struct net *net) | 2640 | static int __net_init ip6_route_net_init(struct net *net) |
| 2641 | { | 2641 | { |
| 2642 | int ret = -ENOMEM; | 2642 | int ret = -ENOMEM; |
| 2643 | 2643 | ||
| @@ -2702,7 +2702,7 @@ out_ip6_dst_ops: | |||
| 2702 | goto out; | 2702 | goto out; |
| 2703 | } | 2703 | } |
| 2704 | 2704 | ||
| 2705 | static void ip6_route_net_exit(struct net *net) | 2705 | static void __net_exit ip6_route_net_exit(struct net *net) |
| 2706 | { | 2706 | { |
| 2707 | #ifdef CONFIG_PROC_FS | 2707 | #ifdef CONFIG_PROC_FS |
| 2708 | proc_net_remove(net, "ipv6_route"); | 2708 | proc_net_remove(net, "ipv6_route"); |
