Lines Matching refs:gateway
232 struct batadv_tvlv_gateway_data gateway, *gateway_ptr; in batadv_gw_tvlv_ogm_handler_v1() local
238 tvlv_value_len < sizeof(gateway)) { in batadv_gw_tvlv_ogm_handler_v1()
239 gateway.bandwidth_down = 0; in batadv_gw_tvlv_ogm_handler_v1()
240 gateway.bandwidth_up = 0; in batadv_gw_tvlv_ogm_handler_v1()
243 gateway.bandwidth_down = gateway_ptr->bandwidth_down; in batadv_gw_tvlv_ogm_handler_v1()
244 gateway.bandwidth_up = gateway_ptr->bandwidth_up; in batadv_gw_tvlv_ogm_handler_v1()
245 if (gateway.bandwidth_down == 0 || in batadv_gw_tvlv_ogm_handler_v1()
246 gateway.bandwidth_up == 0) { in batadv_gw_tvlv_ogm_handler_v1()
247 gateway.bandwidth_down = 0; in batadv_gw_tvlv_ogm_handler_v1()
248 gateway.bandwidth_up = 0; in batadv_gw_tvlv_ogm_handler_v1()
252 batadv_gw_node_update(bat_priv, orig, &gateway); in batadv_gw_tvlv_ogm_handler_v1()
255 if (gateway.bandwidth_down != 0 && in batadv_gw_tvlv_ogm_handler_v1()