diff options
| -rw-r--r-- | include/net/dst.h | 1 | ||||
| -rw-r--r-- | net/bridge/br_netfilter.c | 2 | ||||
| -rw-r--r-- | net/ipv4/route.c | 4 | ||||
| -rw-r--r-- | net/ipv6/ip6_output.c | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/include/net/dst.h b/include/net/dst.h index 6faec1a60216..75766b42660e 100644 --- a/include/net/dst.h +++ b/include/net/dst.h | |||
| @@ -53,6 +53,7 @@ struct dst_entry { | |||
| 53 | #define DST_NOHASH 0x0008 | 53 | #define DST_NOHASH 0x0008 |
| 54 | #define DST_NOCACHE 0x0010 | 54 | #define DST_NOCACHE 0x0010 |
| 55 | #define DST_NOCOUNT 0x0020 | 55 | #define DST_NOCOUNT 0x0020 |
| 56 | #define DST_NOPEER 0x0040 | ||
| 56 | 57 | ||
| 57 | short error; | 58 | short error; |
| 58 | short obsolete; | 59 | short obsolete; |
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c index 08757dc670a4..fa8b8f763580 100644 --- a/net/bridge/br_netfilter.c +++ b/net/bridge/br_netfilter.c | |||
| @@ -147,7 +147,7 @@ void br_netfilter_rtable_init(struct net_bridge *br) | |||
| 147 | rt->dst.dev = br->dev; | 147 | rt->dst.dev = br->dev; |
| 148 | rt->dst.path = &rt->dst; | 148 | rt->dst.path = &rt->dst; |
| 149 | dst_init_metrics(&rt->dst, br_dst_default_metrics, true); | 149 | dst_init_metrics(&rt->dst, br_dst_default_metrics, true); |
| 150 | rt->dst.flags = DST_NOXFRM; | 150 | rt->dst.flags = DST_NOXFRM | DST_NOPEER; |
| 151 | rt->dst.ops = &fake_dst_ops; | 151 | rt->dst.ops = &fake_dst_ops; |
| 152 | } | 152 | } |
| 153 | 153 | ||
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 85cc053d9d6e..94cdbc55ca7e 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
| @@ -1367,7 +1367,7 @@ void __ip_select_ident(struct iphdr *iph, struct dst_entry *dst, int more) | |||
| 1367 | { | 1367 | { |
| 1368 | struct rtable *rt = (struct rtable *) dst; | 1368 | struct rtable *rt = (struct rtable *) dst; |
| 1369 | 1369 | ||
| 1370 | if (rt) { | 1370 | if (rt && !(rt->dst.flags & DST_NOPEER)) { |
| 1371 | if (rt->peer == NULL) | 1371 | if (rt->peer == NULL) |
| 1372 | rt_bind_peer(rt, rt->rt_dst, 1); | 1372 | rt_bind_peer(rt, rt->rt_dst, 1); |
| 1373 | 1373 | ||
| @@ -1378,7 +1378,7 @@ void __ip_select_ident(struct iphdr *iph, struct dst_entry *dst, int more) | |||
| 1378 | iph->id = htons(inet_getid(rt->peer, more)); | 1378 | iph->id = htons(inet_getid(rt->peer, more)); |
| 1379 | return; | 1379 | return; |
| 1380 | } | 1380 | } |
| 1381 | } else | 1381 | } else if (!rt) |
| 1382 | printk(KERN_DEBUG "rt_bind_peer(0) @%p\n", | 1382 | printk(KERN_DEBUG "rt_bind_peer(0) @%p\n", |
| 1383 | __builtin_return_address(0)); | 1383 | __builtin_return_address(0)); |
| 1384 | 1384 | ||
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 84d0bd5cac93..ec562713db9b 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
| @@ -603,7 +603,7 @@ void ipv6_select_ident(struct frag_hdr *fhdr, struct rt6_info *rt) | |||
| 603 | static atomic_t ipv6_fragmentation_id; | 603 | static atomic_t ipv6_fragmentation_id; |
| 604 | int old, new; | 604 | int old, new; |
| 605 | 605 | ||
| 606 | if (rt) { | 606 | if (rt && !(rt->dst.flags & DST_NOPEER)) { |
| 607 | struct inet_peer *peer; | 607 | struct inet_peer *peer; |
| 608 | 608 | ||
| 609 | if (!rt->rt6i_peer) | 609 | if (!rt->rt6i_peer) |
