main.c (b8766e4ed3e9fc6b27dc3ead029cd307caa926d2) main.c (bd3524c14bd02f94a4fa33e700883e01182f5ed5)
1/* Copyright (C) 2007-2015 B.A.T.M.A.N. contributors:
2 *
3 * Marek Lindner, Simon Wunderlich
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 2 of the GNU General Public
7 * License as published by the Free Software Foundation.
8 *

--- 185 unchanged lines hidden (view full) ---

194void batadv_mesh_free(struct net_device *soft_iface)
195{
196 struct batadv_priv *bat_priv = netdev_priv(soft_iface);
197
198 atomic_set(&bat_priv->mesh_state, BATADV_MESH_DEACTIVATING);
199
200 batadv_purge_outstanding_packets(bat_priv, NULL);
201
1/* Copyright (C) 2007-2015 B.A.T.M.A.N. contributors:
2 *
3 * Marek Lindner, Simon Wunderlich
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 2 of the GNU General Public
7 * License as published by the Free Software Foundation.
8 *

--- 185 unchanged lines hidden (view full) ---

194void batadv_mesh_free(struct net_device *soft_iface)
195{
196 struct batadv_priv *bat_priv = netdev_priv(soft_iface);
197
198 atomic_set(&bat_priv->mesh_state, BATADV_MESH_DEACTIVATING);
199
200 batadv_purge_outstanding_packets(bat_priv, NULL);
201
202 batadv_gw_node_purge(bat_priv);
202 batadv_gw_node_free(bat_priv);
203 batadv_nc_mesh_free(bat_priv);
204 batadv_dat_free(bat_priv);
205 batadv_bla_free(bat_priv);
206
207 batadv_mcast_free(bat_priv);
208
209 /* Free the TT and the originator tables only after having terminated
210 * all the other depending components which may use these structures for

--- 1074 unchanged lines hidden ---
203 batadv_nc_mesh_free(bat_priv);
204 batadv_dat_free(bat_priv);
205 batadv_bla_free(bat_priv);
206
207 batadv_mcast_free(bat_priv);
208
209 /* Free the TT and the originator tables only after having terminated
210 * all the other depending components which may use these structures for

--- 1074 unchanged lines hidden ---