Home
last modified time | relevance | path

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

/linux-4.1.27/net/batman-adv/
Dgateway_common.c119 char gw_mode; in batadv_gw_tvlv_container_update() local
121 gw_mode = atomic_read(&bat_priv->gw_mode); in batadv_gw_tvlv_container_update()
123 switch (gw_mode) { in batadv_gw_tvlv_container_update()
217 (atomic_read(&bat_priv->gw_mode) == BATADV_GW_MODE_CLIENT) && in batadv_gw_tvlv_ogm_handler_v1()
Dsoft-interface.c172 int gw_mode; in batadv_interface_tx() local
227 gw_mode = atomic_read(&bat_priv->gw_mode); in batadv_interface_tx()
230 if (gw_mode == BATADV_GW_MODE_OFF) { in batadv_interface_tx()
251 else if ((gw_mode == BATADV_GW_MODE_SERVER) && in batadv_interface_tx()
756 atomic_set(&bat_priv->gw_mode, BATADV_GW_MODE_OFF); in batadv_softif_init_late()
Dsysfs.c351 switch (atomic_read(&bat_priv->gw_mode)) { in batadv_show_gw_mode()
400 if (atomic_read(&bat_priv->gw_mode) == gw_mode_tmp) in batadv_store_gw_mode()
403 switch (atomic_read(&bat_priv->gw_mode)) { in batadv_store_gw_mode()
432 atomic_set(&bat_priv->gw_mode, (unsigned int)gw_mode_tmp); in batadv_store_gw_mode()
541 static BATADV_ATTR(gw_mode, S_IRUGO | S_IWUSR, batadv_show_gw_mode,
Dgateway_client.c228 if (atomic_read(&bat_priv->gw_mode) != BATADV_GW_MODE_CLIENT) in batadv_gw_check_client_stop()
255 if (atomic_read(&bat_priv->gw_mode) != BATADV_GW_MODE_CLIENT) in batadv_gw_election()
818 switch (atomic_read(&bat_priv->gw_mode)) { in batadv_gw_out_of_range()
Dtypes.h782 atomic_t gw_mode; member
/linux-4.1.27/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.1.27/Documentation/networking/
Dbatman-adv.txt72 #bridge_loop_avoidance gw_mode log_level