Home
last modified time | relevance | path

Searched refs:gw_mode (Results 1 – 7 of 7) sorted by relevance

/linux-4.4.14/net/batman-adv/
Dgateway_common.c164 char gw_mode; in batadv_gw_tvlv_container_update() local
166 gw_mode = atomic_read(&bat_priv->gw_mode); in batadv_gw_tvlv_container_update()
168 switch (gw_mode) { in batadv_gw_tvlv_container_update()
263 (atomic_read(&bat_priv->gw_mode) == BATADV_GW_MODE_CLIENT) && in batadv_gw_tvlv_ogm_handler_v1()
Dsoft-interface.c202 int gw_mode; in batadv_interface_tx() local
257 gw_mode = atomic_read(&bat_priv->gw_mode); in batadv_interface_tx()
260 if (gw_mode == BATADV_GW_MODE_OFF) { in batadv_interface_tx()
281 else if ((gw_mode == BATADV_GW_MODE_SERVER) && in batadv_interface_tx()
790 atomic_set(&bat_priv->gw_mode, BATADV_GW_MODE_OFF); in batadv_softif_init_late()
Dsysfs.c370 switch (atomic_read(&bat_priv->gw_mode)) { in batadv_show_gw_mode()
419 if (atomic_read(&bat_priv->gw_mode) == gw_mode_tmp) in batadv_store_gw_mode()
422 switch (atomic_read(&bat_priv->gw_mode)) { in batadv_store_gw_mode()
451 atomic_set(&bat_priv->gw_mode, (unsigned int)gw_mode_tmp); in batadv_store_gw_mode()
560 static BATADV_ATTR(gw_mode, S_IRUGO | S_IWUSR, batadv_show_gw_mode,
Dgateway_client.c241 if (atomic_read(&bat_priv->gw_mode) != BATADV_GW_MODE_CLIENT) in batadv_gw_check_client_stop()
269 if (atomic_read(&bat_priv->gw_mode) != BATADV_GW_MODE_CLIENT) in batadv_gw_election()
810 switch (atomic_read(&bat_priv->gw_mode)) { in batadv_gw_out_of_range()
Dtypes.h797 atomic_t gw_mode; member
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-class-net-mesh48 node if gw_mode was set to 'server'.
50 What: /sys/class/net/<mesh_iface>/mesh/gw_mode
62 to choose a gateway if gw_mode was set to 'client'.
/linux-4.4.14/Documentation/networking/
Dbatman-adv.txt72 #bridge_loop_avoidance gw_mode log_level