diff options
| author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2014-02-20 04:19:31 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-02-20 13:13:50 -0500 |
| commit | cf71d2bc0b8a473209d5c770ce560853bd720d14 (patch) | |
| tree | 9ecc5d5a3f3c0bb44a5f82a238f427291efef702 /include/net | |
| parent | 6671b2240c54585d4afb5286a29f1569fe5e40a8 (diff) | |
sit: fix panic with route cache in ip tunnels
Bug introduced by commit 7d442fab0a67 ("ipv4: Cache dst in tunnels").
Because sit code does not call ip_tunnel_init(), the dst_cache was not
initialized.
CC: Tom Herbert <therbert@google.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/ip_tunnels.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h index 48ed75c21260..e77c10405d51 100644 --- a/include/net/ip_tunnels.h +++ b/include/net/ip_tunnels.h | |||
| @@ -129,6 +129,7 @@ int ip_tunnel_changelink(struct net_device *dev, struct nlattr *tb[], | |||
| 129 | int ip_tunnel_newlink(struct net_device *dev, struct nlattr *tb[], | 129 | int ip_tunnel_newlink(struct net_device *dev, struct nlattr *tb[], |
| 130 | struct ip_tunnel_parm *p); | 130 | struct ip_tunnel_parm *p); |
| 131 | void ip_tunnel_setup(struct net_device *dev, int net_id); | 131 | void ip_tunnel_setup(struct net_device *dev, int net_id); |
| 132 | void ip_tunnel_dst_reset_all(struct ip_tunnel *t); | ||
| 132 | 133 | ||
| 133 | /* Extract dsfield from inner protocol */ | 134 | /* Extract dsfield from inner protocol */ |
| 134 | static inline u8 ip_tunnel_get_dsfield(const struct iphdr *iph, | 135 | static inline u8 ip_tunnel_get_dsfield(const struct iphdr *iph, |
