|
@@ -114,12 +114,18 @@ static struct neighbour *fake_neigh_lookup(const struct dst_entry *dst, const vo
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
+static unsigned int fake_mtu(const struct dst_entry *dst)
|
|
|
+{
|
|
|
+ return dst->dev->mtu;
|
|
|
+}
|
|
|
+
|
|
|
static struct dst_ops fake_dst_ops = {
|
|
|
.family = AF_INET,
|
|
|
.protocol = cpu_to_be16(ETH_P_IP),
|
|
|
.update_pmtu = fake_update_pmtu,
|
|
|
.cow_metrics = fake_cow_metrics,
|
|
|
.neigh_lookup = fake_neigh_lookup,
|
|
|
+ .mtu = fake_mtu,
|
|
|
};
|
|
|
|
|
|
/*
|
|
@@ -141,7 +147,7 @@ void br_netfilter_rtable_init(struct net_bridge *br)
|
|
|
rt->dst.dev = br->dev;
|
|
|
rt->dst.path = &rt->dst;
|
|
|
dst_init_metrics(&rt->dst, br_dst_default_metrics, true);
|
|
|
- rt->dst.flags = DST_NOXFRM;
|
|
|
+ rt->dst.flags = DST_NOXFRM | DST_NOPEER;
|
|
|
rt->dst.ops = &fake_dst_ops;
|
|
|
}
|
|
|
|