Lines Matching refs:ie

2239 	struct ieee80211_meshpeer_ie ie;  in mesh_recv_action_meshpeering_open()  local
2244 meshpeer = mesh_parse_meshpeering_action(ni, wh, frm+2+2, efrm, &ie, in mesh_recv_action_meshpeering_open()
2386 struct ieee80211_meshpeer_ie ie; in mesh_recv_action_meshpeering_confirm() local
2391 meshpeer = mesh_parse_meshpeering_action(ni, wh, frm+2+2+2+2, efrm, &ie, in mesh_recv_action_meshpeering_confirm()
2449 struct ieee80211_meshpeer_ie ie; in mesh_recv_action_meshpeering_close() local
2454 meshpeer = mesh_parse_meshpeering_action(ni, wh, frm+2, efrm, &ie, in mesh_recv_action_meshpeering_close()
2503 const struct ieee80211_meshlmetric_ie *ie = in mesh_recv_action_meshlmetric() local
2508 if (ie->lm_flags & IEEE80211_MESH_LMETRIC_FLAGS_REQ) { in mesh_recv_action_meshlmetric()
2527 struct ieee80211_meshgann_ie *ie, const uint8_t *frm, const uint8_t *efrm) in mesh_parse_meshgate_action() argument
2537 memset(ie, 0, sizeof(*ie)); in mesh_parse_meshgate_action()
2538 ie->gann_ie = gannie->gann_ie; in mesh_parse_meshgate_action()
2539 ie->gann_len = gannie->gann_len; in mesh_parse_meshgate_action()
2540 ie->gann_flags = gannie->gann_flags; in mesh_parse_meshgate_action()
2541 ie->gann_hopcount = gannie->gann_hopcount; in mesh_parse_meshgate_action()
2542 ie->gann_ttl = gannie->gann_ttl; in mesh_parse_meshgate_action()
2543 IEEE80211_ADDR_COPY(ie->gann_addr, gannie->gann_addr); in mesh_parse_meshgate_action()
2544 ie->gann_seq = le32dec(&gannie->gann_seq); in mesh_parse_meshgate_action()
2545 ie->gann_interval = le16dec(&gannie->gann_interval); in mesh_parse_meshgate_action()
2567 struct ieee80211_meshgann_ie ie; in mesh_recv_action_meshgate() local
2571 if (mesh_parse_meshgate_action(ni, wh, &ie, frm+2, efrm) != 0) { in mesh_recv_action_meshgate()
2579 if (IEEE80211_ADDR_EQ(vap->iv_myaddr, ie.gann_addr)) in mesh_recv_action_meshgate()
2583 "received GANN, meshgate: %6D (seq %u)", ie.gann_addr, ":", in mesh_recv_action_meshgate()
2584 ie.gann_seq); 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()
2606 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_MESH, ie.gann_addr, in mesh_recv_action_meshgate()
2607 "stored new GANN information, seq %u.", ie.gann_seq); in mesh_recv_action_meshgate()
2611 IEEE80211_ADDR_COPY(gr->gr_addr, ie.gann_addr); in mesh_recv_action_meshgate()
2614 gr->gr_lastseq = ie.gann_seq; in mesh_recv_action_meshgate()
2627 if ((ie.gann_ttl - 1) < 1 && !(ms->ms_flags & IEEE80211_MESHFLAGS_FWD)) in mesh_recv_action_meshgate()
2629 pgann.gann_flags = ie.gann_flags; /* Reserved */ in mesh_recv_action_meshgate()
2630 pgann.gann_hopcount = ie.gann_hopcount + 1; in mesh_recv_action_meshgate()
2631 pgann.gann_ttl = ie.gann_ttl - 1; in mesh_recv_action_meshgate()
2632 IEEE80211_ADDR_COPY(pgann.gann_addr, ie.gann_addr); in mesh_recv_action_meshgate()
2633 pgann.gann_seq = ie.gann_seq; in mesh_recv_action_meshgate()
2634 pgann.gann_interval = ie.gann_interval; in mesh_recv_action_meshgate()
2636 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_MESH, ie.gann_addr, in mesh_recv_action_meshgate()
2891 struct ieee80211_meshlmetric_ie *ie = arg0; in mesh_send_action_meshlmetric() local
2895 if (ie->lm_flags & IEEE80211_MESH_LMETRIC_FLAGS_REQ) { in mesh_send_action_meshlmetric()
2901 ie->lm_metric); in mesh_send_action_meshlmetric()
2923 ie->lm_flags, ie->lm_metric); in mesh_send_action_meshlmetric()
2939 struct ieee80211_meshgann_ie *ie = arg0; in mesh_send_action_meshgate() local
2962 frm = ieee80211_add_meshgate(frm, ie); in mesh_send_action_meshgate()
3081 mesh_verify_meshid(struct ieee80211vap *vap, const uint8_t *ie) in mesh_verify_meshid() argument
3085 if (ie == NULL || ie[1] != ms->ms_idlen) in mesh_verify_meshid()
3087 return memcmp(ms->ms_id, ie + 2, ms->ms_idlen); in mesh_verify_meshid()
3094 mesh_verify_meshconf(struct ieee80211vap *vap, const uint8_t *ie) in mesh_verify_meshconf() argument
3097 (const struct ieee80211_meshconf_ie *) ie; in mesh_verify_meshconf()
3143 const uint8_t *ie) in mesh_verify_meshpeer() argument
3146 (const struct ieee80211_meshpeer_ie *) ie; in mesh_verify_meshpeer()
3334 ieee80211_add_meshgate(uint8_t *frm, struct ieee80211_meshgann_ie *ie) in ieee80211_add_meshgate() argument
3338 *frm++ = ie->gann_flags; in ieee80211_add_meshgate()
3339 *frm++ = ie->gann_hopcount; in ieee80211_add_meshgate()
3340 *frm++ = ie->gann_ttl; in ieee80211_add_meshgate()
3341 IEEE80211_ADDR_COPY(frm, ie->gann_addr); in ieee80211_add_meshgate()
3343 ADDWORD(frm, ie->gann_seq); in ieee80211_add_meshgate()
3344 ADDSHORT(frm, ie->gann_interval); in ieee80211_add_meshgate()
3378 ieee80211_parse_meshid(struct ieee80211_node *ni, const uint8_t *ie) in ieee80211_parse_meshid() argument
3380 ni->ni_meshidlen = ie[1]; in ieee80211_parse_meshid()
3381 memcpy(ni->ni_meshid, ie + 2, ie[1]); in ieee80211_parse_meshid()