]> Pileus Git - ~andy/linux/blobdiff - net/batman-adv/icmp_socket.c
Linux 3.14
[~andy/linux] / net / batman-adv / icmp_socket.c
index 130cc3217e2b0fb091dccfad6a4f41d4b0c9dbc9..abb9d6e0388be65a20e0c19d377f7bdda47ea1da 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2013 B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2014 B.A.T.M.A.N. contributors:
  *
  * Marek Lindner
  *
@@ -12,9 +12,7 @@
  * General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301, USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #include "main.h"
@@ -217,7 +215,8 @@ static ssize_t batadv_socket_write(struct file *file, const char __user *buff,
                if (!orig_node)
                        goto dst_unreach;
 
-               neigh_node = batadv_orig_node_get_router(orig_node);
+               neigh_node = batadv_orig_router_get(orig_node,
+                                                   BATADV_IF_DEFAULT);
                if (!neigh_node)
                        goto dst_unreach;