|
@@ -134,8 +134,39 @@ static int eafnosupport_ipv6_dst_lookup(struct net *net, struct sock *u1,
|
|
|
return -EAFNOSUPPORT;
|
|
|
}
|
|
|
|
|
|
+static struct fib6_table *eafnosupport_fib6_get_table(struct net *net, u32 id)
|
|
|
+{
|
|
|
+ return NULL;
|
|
|
+}
|
|
|
+
|
|
|
+static struct fib6_info *
|
|
|
+eafnosupport_fib6_table_lookup(struct net *net, struct fib6_table *table,
|
|
|
+ int oif, struct flowi6 *fl6, int flags)
|
|
|
+{
|
|
|
+ return NULL;
|
|
|
+}
|
|
|
+
|
|
|
+static struct fib6_info *
|
|
|
+eafnosupport_fib6_lookup(struct net *net, int oif, struct flowi6 *fl6,
|
|
|
+ int flags)
|
|
|
+{
|
|
|
+ return NULL;
|
|
|
+}
|
|
|
+
|
|
|
+static struct fib6_info *
|
|
|
+eafnosupport_fib6_multipath_select(const struct net *net, struct fib6_info *f6i,
|
|
|
+ struct flowi6 *fl6, int oif,
|
|
|
+ const struct sk_buff *skb, int strict)
|
|
|
+{
|
|
|
+ return f6i;
|
|
|
+}
|
|
|
+
|
|
|
const struct ipv6_stub *ipv6_stub __read_mostly = &(struct ipv6_stub) {
|
|
|
- .ipv6_dst_lookup = eafnosupport_ipv6_dst_lookup,
|
|
|
+ .ipv6_dst_lookup = eafnosupport_ipv6_dst_lookup,
|
|
|
+ .fib6_get_table = eafnosupport_fib6_get_table,
|
|
|
+ .fib6_table_lookup = eafnosupport_fib6_table_lookup,
|
|
|
+ .fib6_lookup = eafnosupport_fib6_lookup,
|
|
|
+ .fib6_multipath_select = eafnosupport_fib6_multipath_select,
|
|
|
};
|
|
|
EXPORT_SYMBOL_GPL(ipv6_stub);
|
|
|
|