Lines Matching defs:gateway

115  * batadv_gw_reselect - force a gateway reselection
118 * Set a flag to remind the GW component to perform a new gateway reselection.
119 * However this function does not ensure that the current gateway is going to be
120 * deselected. The reselection mechanism may elect the same gateway once again.
122 * This means that invoking batadv_gw_reselect() does not guarantee a gateway
184 * soon as a better gateway appears)
186 * soon as a better gateway appears which has
235 /* deselect the current gateway so that next time that client mode is
240 /* if batman-adv is switching the gw client mode off and a gateway was
288 "Removing selected gateway - no gateway in range\n");
293 "Adding route to gateway %pM (bandwidth: %u.%u/%u.%u MBit, tq: %i)\n",
304 "Changing route to gateway %pM (bandwidth: %u.%u/%u.%u MBit, tq: %i)\n",
350 /* this node already is the gateway */
371 * greater the TQ value of the new gateway must be
378 "Restarting gateway selection: better gateway found (tq curr: %i, tq new: %i)\n",
397 * batadv_gw_node_add - add gateway node to list of available gateways
399 * @orig_node: originator announcing gateway capabilities
400 * @gateway: announced bandwidth information
404 struct batadv_tvlv_gateway_data *gateway)
408 if (gateway->bandwidth_down == 0)
429 "Found new gateway %pM -> gw bandwidth: %u.%u/%u.%u MBit\n",
431 ntohl(gateway->bandwidth_down) / 10,
432 ntohl(gateway->bandwidth_down) % 10,
433 ntohl(gateway->bandwidth_up) / 10,
434 ntohl(gateway->bandwidth_up) % 10);
438 * batadv_gw_node_get - retrieve gateway node from list of available gateways
440 * @orig_node: originator announcing gateway capabilities
442 * Returns gateway node if found or NULL otherwise.
473 * @orig_node: originator announcing gateway capabilities
474 * @gateway: announced bandwidth information
478 struct batadv_tvlv_gateway_data *gateway)
484 batadv_gw_node_add(bat_priv, orig_node, gateway);
488 if ((gw_node->bandwidth_down == ntohl(gateway->bandwidth_down)) &&
489 (gw_node->bandwidth_up == ntohl(gateway->bandwidth_up)))
499 ntohl(gateway->bandwidth_down) / 10,
500 ntohl(gateway->bandwidth_down) % 10,
501 ntohl(gateway->bandwidth_up) / 10,
502 ntohl(gateway->bandwidth_up) % 10);
504 gw_node->bandwidth_down = ntohl(gateway->bandwidth_down);
505 gw_node->bandwidth_up = ntohl(gateway->bandwidth_up);
508 if (ntohl(gateway->bandwidth_down) == 0) {
511 "Gateway %pM removed from gateway list\n",
532 struct batadv_tvlv_gateway_data gateway;
534 gateway.bandwidth_down = 0;
535 gateway.bandwidth_up = 0;
537 batadv_gw_node_update(bat_priv, orig_node, &gateway);
828 /* packet is going to our gateway */