• Home
  • Raw
  • Download

Lines Matching full:gateway

90  * @gw_node: gateway node to free
98 * batadv_gw_get_selected_gw_node() - Get currently selected gateway
101 * Return: selected gateway (with increased refcnt), NULL on errors
122 * batadv_gw_get_selected_orig() - Get originator of currently selected gateway
125 * Return: orig_node of selected gateway (with increased refcnt), NULL on errors
173 * batadv_gw_reselect() - force a gateway reselection
176 * Set a flag to remind the GW component to perform a new gateway reselection.
177 * However this function does not ensure that the current gateway is going to be
178 * deselected. The reselection mechanism may elect the same gateway once again.
180 * This means that invoking batadv_gw_reselect() does not guarantee a gateway
207 /* deselect the current gateway so that next time that client mode is in batadv_gw_check_client_stop()
212 /* if batman-adv is switching the gw client mode off and a gateway was in batadv_gw_check_client_stop()
221 * batadv_gw_election() - Elect the best gateway
272 "Removing selected gateway - no gateway in range\n"); in batadv_gw_election()
277 "Adding route to gateway %pM (bandwidth: %u.%u/%u.%u MBit, tq: %i)\n", in batadv_gw_election()
288 "Changing route to gateway %pM (bandwidth: %u.%u/%u.%u MBit, tq: %i)\n", in batadv_gw_election()
313 * batadv_gw_check_election() - Elect orig node as best gateway when eligible
322 /* abort immediately if the routing algorithm does not support gateway in batadv_gw_check_election()
332 /* this node already is the gateway */ in batadv_gw_check_election()
348 * batadv_gw_node_add() - add gateway node to list of available gateways
350 * @orig_node: originator announcing gateway capabilities
351 * @gateway: announced bandwidth information
358 struct batadv_tvlv_gateway_data *gateway) in batadv_gw_node_add() argument
364 if (gateway->bandwidth_down == 0) in batadv_gw_node_add()
375 gw_node->bandwidth_down = ntohl(gateway->bandwidth_down); in batadv_gw_node_add()
376 gw_node->bandwidth_up = ntohl(gateway->bandwidth_up); in batadv_gw_node_add()
382 "Found new gateway %pM -> gw bandwidth: %u.%u/%u.%u MBit\n", in batadv_gw_node_add()
384 ntohl(gateway->bandwidth_down) / 10, in batadv_gw_node_add()
385 ntohl(gateway->bandwidth_down) % 10, in batadv_gw_node_add()
386 ntohl(gateway->bandwidth_up) / 10, in batadv_gw_node_add()
387 ntohl(gateway->bandwidth_up) % 10); in batadv_gw_node_add()
394 * batadv_gw_node_get() - retrieve gateway node from list of available gateways
396 * @orig_node: originator announcing gateway capabilities
398 * Return: gateway node if found or NULL otherwise.
426 * @orig_node: originator announcing gateway capabilities
427 * @gateway: announced bandwidth information
431 struct batadv_tvlv_gateway_data *gateway) in batadv_gw_node_update() argument
438 batadv_gw_node_add(bat_priv, orig_node, gateway); in batadv_gw_node_update()
444 if (gw_node->bandwidth_down == ntohl(gateway->bandwidth_down) && in batadv_gw_node_update()
445 gw_node->bandwidth_up == ntohl(gateway->bandwidth_up)) in batadv_gw_node_update()
449 "Gateway bandwidth of originator %pM changed from %u.%u/%u.%u MBit to %u.%u/%u.%u MBit\n", in batadv_gw_node_update()
455 ntohl(gateway->bandwidth_down) / 10, in batadv_gw_node_update()
456 ntohl(gateway->bandwidth_down) % 10, in batadv_gw_node_update()
457 ntohl(gateway->bandwidth_up) / 10, in batadv_gw_node_update()
458 ntohl(gateway->bandwidth_up) % 10); in batadv_gw_node_update()
460 gw_node->bandwidth_down = ntohl(gateway->bandwidth_down); in batadv_gw_node_update()
461 gw_node->bandwidth_up = ntohl(gateway->bandwidth_up); in batadv_gw_node_update()
463 if (ntohl(gateway->bandwidth_down) == 0) { in batadv_gw_node_update()
465 "Gateway %pM removed from gateway list\n", in batadv_gw_node_update()
492 * batadv_gw_node_delete() - Remove orig_node from gateway list
499 struct batadv_tvlv_gateway_data gateway; in batadv_gw_node_delete() local
501 gateway.bandwidth_down = 0; in batadv_gw_node_delete()
502 gateway.bandwidth_up = 0; in batadv_gw_node_delete()
504 batadv_gw_node_update(bat_priv, orig_node, &gateway); in batadv_gw_node_delete()
508 * batadv_gw_node_free() - Free gateway information from soft interface
528 * batadv_gw_client_seq_print_text() - Print the gateway table in a seq file
739 * gateway
793 /* packet is going to our gateway */ in batadv_gw_out_of_range()