Lines Matching refs:gateway
62 struct batadv_tvlv_gateway_data gateway, *gateway_ptr; in batadv_gw_tvlv_ogm_handler_v1() local
68 tvlv_value_len < sizeof(gateway)) { in batadv_gw_tvlv_ogm_handler_v1()
69 gateway.bandwidth_down = 0; in batadv_gw_tvlv_ogm_handler_v1()
70 gateway.bandwidth_up = 0; in batadv_gw_tvlv_ogm_handler_v1()
73 gateway.bandwidth_down = gateway_ptr->bandwidth_down; in batadv_gw_tvlv_ogm_handler_v1()
74 gateway.bandwidth_up = gateway_ptr->bandwidth_up; in batadv_gw_tvlv_ogm_handler_v1()
75 if (gateway.bandwidth_down == 0 || in batadv_gw_tvlv_ogm_handler_v1()
76 gateway.bandwidth_up == 0) { in batadv_gw_tvlv_ogm_handler_v1()
77 gateway.bandwidth_down = 0; in batadv_gw_tvlv_ogm_handler_v1()
78 gateway.bandwidth_up = 0; in batadv_gw_tvlv_ogm_handler_v1()
82 batadv_gw_node_update(bat_priv, orig, &gateway); in batadv_gw_tvlv_ogm_handler_v1()
85 if (gateway.bandwidth_down != 0 && in batadv_gw_tvlv_ogm_handler_v1()