diff options
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_device.c | 2 | ||||
-rw-r--r-- | net/bridge/br_netfilter.c | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/net/bridge/br_device.c b/net/bridge/br_device.c index eedf2c94820e..b898364beaf5 100644 --- a/net/bridge/br_device.c +++ b/net/bridge/br_device.c | |||
@@ -127,7 +127,7 @@ static int br_change_mtu(struct net_device *dev, int new_mtu) | |||
127 | 127 | ||
128 | #ifdef CONFIG_BRIDGE_NETFILTER | 128 | #ifdef CONFIG_BRIDGE_NETFILTER |
129 | /* remember the MTU in the rtable for PMTU */ | 129 | /* remember the MTU in the rtable for PMTU */ |
130 | br->fake_rtable.u.dst.metrics[RTAX_MTU - 1] = new_mtu; | 130 | br->fake_rtable.dst.metrics[RTAX_MTU - 1] = new_mtu; |
131 | #endif | 131 | #endif |
132 | 132 | ||
133 | return 0; | 133 | return 0; |
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c index 44420992f72f..0685b2558ab5 100644 --- a/net/bridge/br_netfilter.c +++ b/net/bridge/br_netfilter.c | |||
@@ -117,12 +117,12 @@ void br_netfilter_rtable_init(struct net_bridge *br) | |||
117 | { | 117 | { |
118 | struct rtable *rt = &br->fake_rtable; | 118 | struct rtable *rt = &br->fake_rtable; |
119 | 119 | ||
120 | atomic_set(&rt->u.dst.__refcnt, 1); | 120 | atomic_set(&rt->dst.__refcnt, 1); |
121 | rt->u.dst.dev = br->dev; | 121 | rt->dst.dev = br->dev; |
122 | rt->u.dst.path = &rt->u.dst; | 122 | rt->dst.path = &rt->dst; |
123 | rt->u.dst.metrics[RTAX_MTU - 1] = 1500; | 123 | rt->dst.metrics[RTAX_MTU - 1] = 1500; |
124 | rt->u.dst.flags = DST_NOXFRM; | 124 | rt->dst.flags = DST_NOXFRM; |
125 | rt->u.dst.ops = &fake_dst_ops; | 125 | rt->dst.ops = &fake_dst_ops; |
126 | } | 126 | } |
127 | 127 | ||
128 | static inline struct rtable *bridge_parent_rtable(const struct net_device *dev) | 128 | static inline struct rtable *bridge_parent_rtable(const struct net_device *dev) |
@@ -244,8 +244,8 @@ static int br_nf_pre_routing_finish_ipv6(struct sk_buff *skb) | |||
244 | kfree_skb(skb); | 244 | kfree_skb(skb); |
245 | return 0; | 245 | return 0; |
246 | } | 246 | } |
247 | dst_hold(&rt->u.dst); | 247 | dst_hold(&rt->dst); |
248 | skb_dst_set(skb, &rt->u.dst); | 248 | skb_dst_set(skb, &rt->dst); |
249 | 249 | ||
250 | skb->dev = nf_bridge->physindev; | 250 | skb->dev = nf_bridge->physindev; |
251 | nf_bridge_update_protocol(skb); | 251 | nf_bridge_update_protocol(skb); |
@@ -396,8 +396,8 @@ bridged_dnat: | |||
396 | kfree_skb(skb); | 396 | kfree_skb(skb); |
397 | return 0; | 397 | return 0; |
398 | } | 398 | } |
399 | dst_hold(&rt->u.dst); | 399 | dst_hold(&rt->dst); |
400 | skb_dst_set(skb, &rt->u.dst); | 400 | skb_dst_set(skb, &rt->dst); |
401 | } | 401 | } |
402 | 402 | ||
403 | skb->dev = nf_bridge->physindev; | 403 | skb->dev = nf_bridge->physindev; |