diff options
Diffstat (limited to 'net/ipv4/ip_tunnel.c')
-rw-r--r-- | net/ipv4/ip_tunnel.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/ipv4/ip_tunnel.c b/net/ipv4/ip_tunnel.c index d3e447936720..2cd08280c77b 100644 --- a/net/ipv4/ip_tunnel.c +++ b/net/ipv4/ip_tunnel.c | |||
@@ -972,6 +972,14 @@ void ip_tunnel_dellink(struct net_device *dev, struct list_head *head) | |||
972 | } | 972 | } |
973 | EXPORT_SYMBOL_GPL(ip_tunnel_dellink); | 973 | EXPORT_SYMBOL_GPL(ip_tunnel_dellink); |
974 | 974 | ||
975 | struct net *ip_tunnel_get_link_net(const struct net_device *dev) | ||
976 | { | ||
977 | struct ip_tunnel *tunnel = netdev_priv(dev); | ||
978 | |||
979 | return tunnel->net; | ||
980 | } | ||
981 | EXPORT_SYMBOL(ip_tunnel_get_link_net); | ||
982 | |||
975 | int ip_tunnel_init_net(struct net *net, int ip_tnl_net_id, | 983 | int ip_tunnel_init_net(struct net *net, int ip_tnl_net_id, |
976 | struct rtnl_link_ops *ops, char *devname) | 984 | struct rtnl_link_ops *ops, char *devname) |
977 | { | 985 | { |