Lines Matching refs:gr
866 struct ieee80211_mesh_gate_route *gr = NULL, *next; in ieee80211_mesh_mark_gate() local
870 TAILQ_FOREACH_SAFE(gr, &ms->ms_known_gates, gr_next, next) { in ieee80211_mesh_mark_gate()
871 if (IEEE80211_ADDR_EQ(gr->gr_addr, addr)) { in ieee80211_mesh_mark_gate()
881 gr = IEEE80211_MALLOC(ALIGN(sizeof(struct ieee80211_mesh_gate_route)), in ieee80211_mesh_mark_gate()
884 IEEE80211_ADDR_COPY(gr->gr_addr, addr); in ieee80211_mesh_mark_gate()
885 TAILQ_INSERT_TAIL(&ms->ms_known_gates, gr, gr_next); in ieee80211_mesh_mark_gate()
887 gr->gr_route = rt; in ieee80211_mesh_mark_gate()
891 return gr; in ieee80211_mesh_mark_gate()
1073 struct ieee80211_mesh_gate_route *gr = NULL, *gr_next; in ieee80211_mesh_forward_to_gates() local
1088 TAILQ_FOREACH_SAFE(gr, &ms->ms_known_gates, gr_next, gr_next) { in ieee80211_mesh_forward_to_gates()
1089 rt_gate = gr->gr_route; in ieee80211_mesh_forward_to_gates()
1094 gr->gr_addr, ":"); in ieee80211_mesh_forward_to_gates()
2564 struct ieee80211_mesh_gate_route *gr, *next; in mesh_recv_action_meshgate() local
2589 TAILQ_FOREACH_SAFE(gr, &ms->ms_known_gates, gr_next, next) { in mesh_recv_action_meshgate()
2590 if (!IEEE80211_ADDR_EQ(gr->gr_addr, ie.gann_addr)) in mesh_recv_action_meshgate()
2592 if (ie.gann_seq <= gr->gr_lastseq) { in mesh_recv_action_meshgate()
2596 ie.gann_seq, gr->gr_lastseq); in mesh_recv_action_meshgate()
2608 gr = IEEE80211_MALLOC(ALIGN(sizeof(struct ieee80211_mesh_gate_route)), in mesh_recv_action_meshgate()
2611 IEEE80211_ADDR_COPY(gr->gr_addr, ie.gann_addr); in mesh_recv_action_meshgate()
2612 TAILQ_INSERT_TAIL(&ms->ms_known_gates, gr, gr_next); in mesh_recv_action_meshgate()
2614 gr->gr_lastseq = ie.gann_seq; in mesh_recv_action_meshgate()
2617 rt_gate = mesh_rt_find_locked(ms, gr->gr_addr); in mesh_recv_action_meshgate()
2620 gr->gr_route = rt_gate; in mesh_recv_action_meshgate()